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 48d3ccb..6faf212 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: