X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwrite.c;fp=src%2Fwrite.c;h=9e396162491d9ab6895dbb9fddf18a6327c218bd;hp=bc7b6ebde872159d997dee3a08fa48a377cfdc91;hb=35a448862fb198323481044e0d820c7c631e4dab;hpb=c0f97d52b487123a1a68a6a07fa0d9be81ee1f72 diff --git a/src/write.c b/src/write.c index bc7b6ebd..9e396162 100644 --- a/src/write.c +++ b/src/write.c @@ -2388,7 +2388,9 @@ finish_write(WIMStruct *wim, int image, int write_flags, } /* Write integrity table if needed. */ - if (write_flags & WIMLIB_WRITE_FLAG_CHECK_INTEGRITY) { + if ((write_flags & WIMLIB_WRITE_FLAG_CHECK_INTEGRITY) && + wim->out_hdr.blob_table_reshdr.offset_in_wim != 0) + { if (write_flags & WIMLIB_WRITE_FLAG_NO_NEW_BLOBS) { /* The XML data we wrote may have overwritten part of * the old integrity table, so while calculating the new