]> wimlib.net Git - wimlib/blobdiff - src/integrity.c
wim_recalculate_refcnts(): Check for error
[wimlib] / src / integrity.c
index 0bfb80501c8c8f66987617ebbe13e8460573afa7..21bc2f151ff314dea0fbfe3f241b8ee8aed1c3e4 100644 (file)
@@ -328,6 +328,10 @@ write_integrity_table(WIMStruct *wim,
        int ret;
        u32 new_table_size;
 
+       DEBUG("Writing integrity table "
+             "(new_lookup_table_end=%"PRIu64", old_lookup_table_end=%"PRIu64")",
+             new_lookup_table_end, old_lookup_table_end);
+
        wimlib_assert(old_lookup_table_end <= new_lookup_table_end);
 
        old_table = NULL;
@@ -361,6 +365,7 @@ write_integrity_table(WIMStruct *wim,
                                             0,
                                             &wim->out_fd,
                                             WIMLIB_COMPRESSION_TYPE_NONE,
+                                            0,
                                             &wim->hdr.integrity,
                                             NULL,
                                             0,
@@ -368,6 +373,7 @@ write_integrity_table(WIMStruct *wim,
        FREE(new_table);
 out_free_old_table:
        FREE(old_table);
+       DEBUG("ret=%d", ret);
        return ret;
 }