From: Eric Biggers Date: Tue, 24 Jun 2014 01:04:57 +0000 (-0500) Subject: win32_apply.c: Don't use BEGIN_STREAM_STATUS_SKIP_STREAM X-Git-Tag: v1.7.1~85 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=33413e379625e3ea9b462d11a2f74d04da28747c win32_apply.c: Don't use BEGIN_STREAM_STATUS_SKIP_STREAM 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. --- diff --git a/src/win32_apply.c b/src/win32_apply.c index 48d3ccb2..6faf2125 100644 --- a/src/win32_apply.c +++ b/src/win32_apply.c @@ -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: