From 9c0d0e6a7cdc2361321c8ede64ba5e6e536cc385 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 25 Feb 2018 21:44:22 +0100 Subject: [PATCH] Changed the type of index_hole_pos in the 86F image creation code in win_new_floppy.c from uint16_t to uint32_t, fixes creation of 86F images. --- src/win/win_new_floppy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_new_floppy.c b/src/win/win_new_floppy.c index 8aa623f09..4384fcceb 100644 --- a/src/win/win_new_floppy.c +++ b/src/win/win_new_floppy.c @@ -8,7 +8,7 @@ * * Handle the New Floppy Image dialog. * - * Version: @(#)win_new_floppy.c 1.0.1 2018/01/26 + * Version: @(#)win_new_floppy.c 1.0.2 2018/02/25 * * Authors: Miran Grca, * @@ -77,7 +77,7 @@ create_86f(WCHAR *file_name, disk_size_t disk_size, uint8_t rpm_mode) uint16_t version = 0x020B; uint16_t dflags = 0; uint16_t tflags = 0; - uint16_t index_hole_pos = 0; + uint32_t index_hole_pos = 0; uint32_t tarray[512]; uint32_t array_size, array_size2; uint32_t track_base, track_size;