X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=c6711ec902dd36f43df80b972531bfa14fc22da1;hp=9cbcdb2e054119025cabd22ae0cace0e299bd639;hb=3ce89e945a252d62169280e2d7cc460fca7d0820;hpb=7ac341b9d43bf1becd7d05f9ad2eed3d221de2d6 diff --git a/src/extract.c b/src/extract.c index 9cbcdb2e..c6711ec9 100644 --- a/src/extract.c +++ b/src/extract.c @@ -2503,9 +2503,12 @@ extract_trees(WIMStruct *wim, struct wim_dentry **trees, size_t num_trees, goto out_free_realtarget; if (progress_func) { - progress_func(*wim_source_path ? WIMLIB_PROGRESS_MSG_EXTRACT_TREE_END : - WIMLIB_PROGRESS_MSG_EXTRACT_IMAGE_END, - &ctx.progress); + int msg; + if (*wim_source_path || (extract_flags & WIMLIB_EXTRACT_FLAG_PATHMODE)) + msg = WIMLIB_PROGRESS_MSG_EXTRACT_TREE_END; + else + msg = WIMLIB_PROGRESS_MSG_EXTRACT_IMAGE_END; + progress_func(msg, &ctx.progress); } do_extract_warnings(&ctx);