X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=c61dac764dfc612e36872c099100ca0c643af58f;hp=9d65bef8f5c2443e6928b95caa0e19ebf7ae5c28;hb=465a76356bbac48a658da7cdc14b1bb764d91a29;hpb=f18b7fc3361c4daac0ddd104af65a8eff8466fec diff --git a/src/extract.c b/src/extract.c index 9d65bef8..c61dac76 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1473,6 +1473,11 @@ extract_trees(WIMStruct *wim, struct wim_dentry **trees, size_t num_trees, if (ret) goto out_cleanup; + if (unlikely(list_empty(&dentry_list))) { + WARNING("There is nothing to extract!"); + goto out_cleanup; + } + ret = dentry_list_resolve_streams(&dentry_list, ctx); if (ret) goto out_cleanup;