From 33413e379625e3ea9b462d11a2f74d04da28747c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 23 Jun 2014 20:04:57 -0500 Subject: [PATCH] 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. --- src/win32_apply.c | 5 ----- 1 file changed, 5 deletions(-) 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: -- 2.43.0