- if (progress_func) {
- progress.integrity.total_bytes = new_check_bytes;
- progress.integrity.total_chunks = new_num_chunks;
- progress.integrity.completed_chunks = 0;
- progress.integrity.completed_bytes = 0;
- progress.integrity.chunk_size = chunk_size;
- progress.integrity.filename = NULL;
- progress_func(WIMLIB_PROGRESS_MSG_CALC_INTEGRITY,
- &progress);
- }
+ progress.integrity.total_bytes = new_check_bytes;
+ progress.integrity.total_chunks = new_num_chunks;
+ progress.integrity.completed_chunks = 0;
+ progress.integrity.completed_bytes = 0;
+ progress.integrity.chunk_size = chunk_size;
+ progress.integrity.filename = NULL;
+
+ ret = call_progress(progfunc, WIMLIB_PROGRESS_MSG_CALC_INTEGRITY,
+ &progress, progctx);
+ if (ret)
+ goto out_free_new_table;