]> wimlib.net Git - wimlib/commitdiff
win32_apply.c: Don't use BEGIN_STREAM_STATUS_SKIP_STREAM
authorEric Biggers <ebiggers3@gmail.com>
Tue, 24 Jun 2014 01:04:57 +0000 (20:04 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 24 Jun 2014 01:04:57 +0000 (20:04 -0500)
This doesn't work correctly when extracting the stream from a pipe or a
solid block.  Just read the data and don't do anything with it --- at
least this double checks that it's actually valid.

src/win32_apply.c

index 48d3ccb25501232b9a10f279b41b0ea2c600b5ce..6faf2125f8a1b3a66a6b1e0ac7772e964440fe72 100644 (file)
@@ -1677,11 +1677,6 @@ begin_extract_stream(struct wim_lookup_table_entry *stream,
                }
        }
 
-       if (unlikely(ctx->num_open_handles == 0 && ctx->data_buffer_ptr == NULL)) {
-               /* The data of this stream isn't actually needed!
-                * (This can happen in WIMBoot mode.)  */
-               return BEGIN_STREAM_STATUS_SKIP_STREAM;
-       }
        return 0;
 
 fail: