]> wimlib.net Git - wimlib/blobdiff - src/win32_apply.c
Update progress functions
[wimlib] / src / win32_apply.c
index 5c861c2cbcf88b81438b4b0dafeb14fdadfcf455..f741b447e078322adf12d86f2d213f405a0b82d7 100644 (file)
@@ -1344,17 +1344,17 @@ begin_extract_stream_instance(const struct wim_lookup_table_entry *stream,
                if (ret)
                        return ret;
                if (in_prepopulate_list(dentry, ctx)) {
-                       if (ctx->common.progress_func) {
-                               union wimlib_progress_info info;
+                       union wimlib_progress_info info;
 
-                               info.wimboot_exclude.path_in_wim = dentry->_full_path;
-                               info.wimboot_exclude.extraction_path = current_path(ctx);
+                       info.wimboot_exclude.path_in_wim = dentry->_full_path;
+                       info.wimboot_exclude.extraction_path = current_path(ctx);
 
-                               ctx->common.progress_func(WIMLIB_PROGRESS_MSG_WIMBOOT_EXCLUDE,
-                                                         &info);
-                               FREE(dentry->_full_path);
-                               dentry->_full_path = NULL;
-                       }
+                       ret = call_progress(ctx->common.progfunc,
+                                           WIMLIB_PROGRESS_MSG_WIMBOOT_EXCLUDE,
+                                           &info, ctx->common.progctx);
+                       FREE(dentry->_full_path);
+                       dentry->_full_path = NULL;
+                       return ret;
                } else {
                        FREE(dentry->_full_path);
                        dentry->_full_path = NULL;