X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fextract.c;h=a7e62697a696617fed01c4bdb3e2f242049346df;hb=26c7f8bb32e4a32001d409f1693e0df016270ed5;hp=3438ca73327ba3f29684967a2ba91536027810d8;hpb=bbedc3e1934278c2ff2746b25b688477cffc9d83;p=wimlib diff --git a/src/extract.c b/src/extract.c index 3438ca73..a7e62697 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1308,7 +1308,8 @@ need_tmpfile_to_extract(struct wim_lookup_table_entry *lte, static int begin_extract_stream_to_tmpfile(struct wim_lookup_table_entry *lte, - bool is_partial_res, void *_ctx) + bool is_partial_res, + void *_ctx) { struct apply_ctx *ctx = _ctx; int ret; @@ -1320,10 +1321,7 @@ begin_extract_stream_to_tmpfile(struct wim_lookup_table_entry *lte, if (ret) return ret; - /* Negative return value here means the function was successful, - * but the consume_chunk and end_chunk callbacks need not be - * called. */ - return -1; + return BEGIN_STREAM_STATUS_SKIP_STREAM; } DEBUG("Temporary file needed for stream (size=%"PRIu64")", lte->size); @@ -1390,7 +1388,7 @@ extract_stream_list(struct apply_ctx *ctx) }; return read_stream_list(&ctx->stream_list, offsetof(struct wim_lookup_table_entry, extraction_list), - 0, &cbs); + &cbs, VERIFY_STREAM_HASHES); } else { /* Extract the streams in unsorted order. */ struct wim_lookup_table_entry *lte;