From 0b629ae55c3234ebd7539a48bbfeadb038ec98ee Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 13 Jul 2020 02:57:47 +0800 Subject: [PATCH] minimig: fix fdd corruption upon write. --- support/minimig/minimig_fdd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/minimig/minimig_fdd.cpp b/support/minimig/minimig_fdd.cpp index adb2678..14a01c8 100644 --- a/support/minimig/minimig_fdd.cpp +++ b/support/minimig/minimig_fdd.cpp @@ -562,7 +562,8 @@ void WriteTrack(adfTYPE *drive) unsigned long lba = drive->track * SECTOR_COUNT; - drive->track_prev = drive->track + 1; // just to force next read from the start of current track + // drive->track_prev = drive->track + 1; // This causes a read that directly follows a write to the previous track to return bad data. + drive->track_prev = -1; // just to force next read from the start of current track while (FindSync(drive)) {