return ret;
}
+ /* Preserve some of the header flags */
+ joined_wim->hdr.flags |= (swms[0]->hdr.flags &
+ (WIM_HDR_FLAG_RP_FIX | WIM_HDR_FLAG_READONLY));
+
/* Write lookup table, XML data, and optional integrity table */
merge_lookup_tables(joined_wim, swms, num_swms);
free_wim_info(joined_wim->wim_info);
if (ret)
goto out_free_wims;
- ret = wimlib_create_new_wim(wimlib_get_compression_type(swms[0]),
- &joined_wim);
+ ret = wimlib_create_new_wim(swms[0]->compression_type, &joined_wim);
if (ret)
goto out_free_wims;