X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fsplit.c;fp=src%2Fsplit.c;h=137585588a98ab5638063233d14eef8cc94c421a;hb=63fb6b74b714d58286823e54a4555b7d85d49163;hp=1313a59aa10ef03c36101ed99508db9206fc2034;hpb=19bae757e5b20b8699036d66c6543b8aabdbc8ae;p=wimlib diff --git a/src/split.c b/src/split.c index 1313a59a..13758558 100644 --- a/src/split.c +++ b/src/split.c @@ -96,7 +96,6 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, for (part_number = 1; part_number <= swm_info->num_parts; part_number++) { int part_write_flags; - wimlib_progress_func_t progfunc; if (part_number != 1) { tsprintf(swm_name_buf + swm_base_name_len, @@ -118,8 +117,6 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, if (part_number != 1) part_write_flags |= WIMLIB_WRITE_FLAG_NO_METADATA; - progfunc = orig_wim->progfunc; - orig_wim->progfunc = NULL; ret = write_wim_part(orig_wim, progress.split.part_name, WIMLIB_ALL_IMAGES, @@ -129,7 +126,6 @@ write_split_wim(WIMStruct *orig_wim, const tchar *swm_name, swm_info->num_parts, &swm_info->parts[part_number - 1].blob_list, guid); - orig_wim->progfunc = progfunc; if (ret) return ret;