]> wimlib.net Git - wimlib/commitdiff
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 0538dd050c9c4e991ae74be48f596e7aa3233043..b1e868281d9cca81f687f6836704409fa2cedf37 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!");