X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fintegrity.c;h=2806708975ee41aad67137281ec96a19045268b0;hb=26a90546f2a8ded51376d631e5a13f3d7a84f8dc;hp=c4a6f2e4e78b1d1e2dd6546495491030994faa36;hpb=3de1ec66f778edda19865482d685bc6f4e17faf7;p=wimlib diff --git a/src/integrity.c b/src/integrity.c index c4a6f2e4..28067089 100644 --- a/src/integrity.c +++ b/src/integrity.c @@ -281,15 +281,13 @@ out_free_new_table: * This function can optionally re-use entries from an older integrity table. * To do this, specify old_blob_table_end and old_table. * + * On success, @wim->out_hdr.integrity_table_reshdr will be filled in with + * information about the integrity table that was written. + * * @wim: * WIMStruct for the WIM file. @wim->out_fd must be a seekable descriptor * to the new WIM file, opened read-write, positioned at the location at - * which the integrity table is to be written. Furthermore, - * @wim->hdr.integrity is expected to be a resource entry which will be set - * to the integrity table information on success. In addition, if - * @old_blob_table_end != 0, @wim->hdr.integrity must initially contain - * information about the old integrity table, and @wim->in_fd must be a - * seekable descriptor to the original WIM file opened for reading. + * which the integrity table is to be written. * * @new_blob_table_end: * The offset of the byte directly following the blob table in the WIM @@ -333,11 +331,11 @@ write_integrity_table(WIMStruct *wim, ret = write_wim_resource_from_buffer(new_table, new_table_size, - 0, + false, &wim->out_fd, WIMLIB_COMPRESSION_TYPE_NONE, 0, - &wim->hdr.integrity_table_reshdr, + &wim->out_hdr.integrity_table_reshdr, NULL, 0); FREE(new_table);