read_lookup_table(): Ignore PACKED_STREAMS flag if default WIM version
authorEric Biggers <ebiggers3@gmail.com>
Tue, 24 Dec 2013 01:37:37 +0000 (19:37 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 24 Dec 2013 01:37:37 +0000 (19:37 -0600)
src/lookup_table.c

index 0538dd0..b1e8682 100644 (file)
@@ -578,6 +578,9 @@ read_wim_lookup_table(WIMStruct *wim)
                      reshdr.size_in_wim, reshdr.uncompressed_size,
                      reshdr.offset_in_wim, reshdr.flags);
 
+               if (wim->hdr.wim_version == WIM_VERSION_DEFAULT)
+                       reshdr.flags &= ~WIM_RESHDR_FLAG_PACKED_STREAMS;
+
                cur_entry = new_lookup_table_entry();
                if (cur_entry == NULL) {
                        ERROR("Not enough memory to read lookup table!");