From 985961501d0051d1a830911c0352cb2220ebcd03 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 25 Mar 2023 18:27:31 +0200 Subject: [PATCH] Free floppy image handle immediately when ejecting from GUI --- od-win32/win32gui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 555e9123..d631abac 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -2679,8 +2679,11 @@ static void ejectfloppy (int n) // no disk in drive when GUI was entered // make sure possibly disks inserted after GUI was entered // are removed. - if (changed_prefs.floppyslots[n].df[0] == 0) + if (changed_prefs.floppyslots[n].df[0] == 0) { disk_insert(n, _T("")); + } else { + disk_eject(n); + } } } -- 2.47.3