X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwrite.c;h=ba8b697078a2efeb2d23a657b10323d05d1cfc25;hp=2effd7dbd8fbf8fcca7224213695023fc45d148b;hb=fced769402ff6ef0bf75fe9e4dcb2880891469e0;hpb=1cf955f8e732e1745a90457e652505f24b7f8cf5 diff --git a/src/write.c b/src/write.c index 2effd7db..ba8b6970 100644 --- a/src/write.c +++ b/src/write.c @@ -1547,10 +1547,10 @@ lte_overwrite_prepare_2(struct wim_lookup_table_entry *lte, void *_args) if (lte->resource_entry.offset + lte->resource_entry.size > args->end_offset) { - #ifdef ENABLE_ERROR_MESSAGES - ERROR("The following resource is after the XML data:"); - print_lookup_table_entry(lte, stderr); - #endif + if (wimlib_print_errors) { + ERROR("The following resource is after the XML data:"); + print_lookup_table_entry(lte, stderr); + } return WIMLIB_ERR_RESOURCE_ORDER; } copy_resource_entry(<e->output_resource_entry,