From: Toni Wilen Date: Sat, 25 Mar 2023 16:27:31 +0000 (+0200) Subject: Free floppy image handle immediately when ejecting from GUI X-Git-Tag: 5.0.0~107 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=985961501d0051d1a830911c0352cb2220ebcd03;p=francis%2Fwinuae.git Free floppy image handle immediately when ejecting from GUI --- 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); + } } }