X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwrite.c;h=bc3d93c2a0681a49e9a13ebb9cec34175895b33b;hp=eed40df89654843f95895b7d13008e2b52a106a4;hb=de988664c349cc93d85e4ea559f1e9c2aa9d9fd1;hpb=dc63267ac1da2b75837689e400eed0400e764f4d diff --git a/src/write.c b/src/write.c index eed40df8..bc3d93c2 100644 --- a/src/write.c +++ b/src/write.c @@ -1680,10 +1680,10 @@ int finish_write(WIMStruct *w, int image, int write_flags) return WIMLIB_ERR_WRITE; xml_data_size = integrity_offset - xml_data_offset; - hdr.xml_res_entry.offset = xml_data_offset; - hdr.xml_res_entry.size = xml_data_size; - hdr.xml_res_entry.original_size = xml_data_size; - hdr.xml_res_entry.flags = 0; + hdr.xml_res_entry.offset = xml_data_offset; + hdr.xml_res_entry.size = xml_data_size; + hdr.xml_res_entry.original_size = xml_data_size; + hdr.xml_res_entry.flags = WIM_RESHDR_FLAG_METADATA; if (write_flags & WIMLIB_WRITE_FLAG_CHECK_INTEGRITY) { ret = write_integrity_table(out, WIM_HEADER_DISK_SIZE,