X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=a3942cf758109b20862612f866c9a1cadf1c3d4b;hp=a3f00cc845f8eb4c561e2842969b5fb564fc05ba;hb=3cf06a471de65b5e69b44c41b95b1bbfb49ab55f;hpb=bde99a849d3e7a479cb04a4e16e405b0c2f022dd diff --git a/src/extract.c b/src/extract.c index a3f00cc8..a3942cf7 100644 --- a/src/extract.c +++ b/src/extract.c @@ -298,8 +298,13 @@ static int apply_dentry_normal(struct dentry *dentry, void *arg) if (inode_unnamed_lte_resolved(inode)) return 0; - if (extract_flags & WIMLIB_EXTRACT_FLAG_VERBOSE) - puts(dentry->full_path_utf8); + if ((extract_flags & WIMLIB_EXTRACT_FLAG_VERBOSE) && + args->progress_func) + { + args->progress.extract.cur_path = dentry->full_path_utf8; + args->progress_func(WIMLIB_PROGRESS_MSG_EXTRACT_DENTRY, + &args->progress); + } len = strlen(args->target); char output_path[len + dentry->full_path_utf8_len + 1]; @@ -569,6 +574,7 @@ static int extract_single_image(WIMStruct *w, int image, args.num_lutimes_warnings = 0; args.target = target; args.stream_list = &stream_list; + args.progress_func = progress_func; if (progress_func) { args.progress.extract.image = image;