From b61a1baaf91859cbadc23cb6cc439578909d3372 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 19 Jul 2020 23:05:34 +0200 Subject: [PATCH] Final MO image creation fix. --- src/win/win_new_floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_new_floppy.c b/src/win/win_new_floppy.c index 0e3da7cb2..9845c77cf 100644 --- a/src/win/win_new_floppy.c +++ b/src/win/win_new_floppy.c @@ -544,7 +544,7 @@ create_mo_sector_image(WCHAR *file_name, int8_t disk_size, uint8_t is_mdi, HWND total_size = total_sectors * sector_bytes; total_size2 = (total_size >> 20) << 20; - total_size = total_size - total_size2; + total_size2 = total_size - total_size2; pbar_max = total_size; pbar_max >>= 20;