From 4ae4d4bbfacaa8e3a2223edf820c73c5be20556e Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 12 Aug 2018 07:40:29 +0200 Subject: [PATCH] The 86F handler is now stopped (set to idle state) at the beginning of a floppy image ejection, should fix the crashes. --- src/floppy/fdd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/floppy/fdd.c b/src/floppy/fdd.c index 0508d5343..f72deda33 100644 --- a/src/floppy/fdd.c +++ b/src/floppy/fdd.c @@ -8,7 +8,7 @@ * * Implementation of the floppy drive emulation. * - * Version: @(#)fdd.c 1.0.9 2018/05/13 + * Version: @(#)fdd.c 1.0.10 2018/08/12 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -520,6 +520,7 @@ void fdd_close(int drive) { fdd_log("FDD: closing drive %d\n", drive); + d86f_stop(drive); /* Call this first of all to make sure the 86F poll is back to idle state. */ if (loaders[driveloaders[drive]].close) loaders[driveloaders[drive]].close(drive); drive_empty[drive] = 1; fdd_set_head(drive, 0);