X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=4448a6ea271722200d74bab3d018661c9868c7d5;hp=4d5ba7e0b7cbfa852829d1a4762c015b72137cdd;hb=4f9ccdbed3ee79171d0b861c4ba93b54ce8feaac;hpb=49a63aa13cdeb4c1348697ccd92207a1a65ec7b0;ds=sidebyside diff --git a/src/extract.c b/src/extract.c index 4d5ba7e0..4448a6ea 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1378,16 +1378,22 @@ read_error: return ret; } +static int +skip_pwm_chunk_cb(const void *chunk, size_t chunk_size, void *_ctx) +{ + return 0; +} + /* Skip over an unneeded stream in a pipable WIM being read from a pipe. */ static int skip_pwm_stream(struct wim_lookup_table_entry *lte) { return read_partial_wim_resource(lte, wim_resource_size(lte), - NULL, + skip_pwm_chunk_cb, wim_resource_chunk_size(lte), NULL, - WIMLIB_READ_RESOURCE_FLAG_SEEK_ONLY, + WIMLIB_READ_RESOURCE_FLAG_RAW_CHUNKS, 0); }