Cache compression type in WIMStruct and wim_lookup_table_entry
[wimlib] / src / metadata_resource.c
index 5f392e52dbc15123f65c58c9ae3b657938b4b9bd..d23b6b0731020e4d75b014749183142f0ad79250 100644 (file)
@@ -311,7 +311,7 @@ write_metadata_resource(WIMStruct *w)
         * is updated. */
        ret = write_wim_resource_from_buffer(buf, metadata_original_size,
                                             w->out_fd,
         * is updated. */
        ret = write_wim_resource_from_buffer(buf, metadata_original_size,
                                             w->out_fd,
-                                            wimlib_get_compression_type(w),
+                                            w->compression_type,
                                             &lte->output_resource_entry,
                                             lte->hash);
        /* Note that although the SHA1 message digest of the metadata resource
                                             &lte->output_resource_entry,
                                             lte->hash);
        /* Note that although the SHA1 message digest of the metadata resource