From 3098734e6ae86ae78d5f65e4f35b3b8d9cedcd5f Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 27 Jan 2018 02:46:25 +0100 Subject: [PATCH] The ZIP drive now tells the UI it has ejected the disk on load failure. --- src/zip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zip.c b/src/zip.c index 6e622a5d8..c70302554 100644 --- a/src/zip.c +++ b/src/zip.c @@ -9,7 +9,7 @@ * Implementation of the Iomega ZIP drive with SCSI(-like) * commands, for both ATAPI and SCSI usage. * - * Version: @(#)zip.c 1.0.1 2018/01/26 + * Version: @(#)zip.c 1.0.2 2018/01/27 * * Author: Miran Grca, * @@ -516,6 +516,7 @@ int zip_load(uint8_t id, wchar_t *fn) fclose(zip_drives[id].f); zip_drives[id].f = NULL; zip_drives[id].medium_size = 0; + zip_eject(id); /* Make sure the host OS knows we've rejected (and ejected) the image. */ return 0; } } else { @@ -524,6 +525,7 @@ int zip_load(uint8_t id, wchar_t *fn) fclose(zip_drives[id].f); zip_drives[id].f = NULL; zip_drives[id].medium_size = 0; + zip_eject(id); /* Make sure the host OS knows we've rejected (and ejected) the image. */ return 0; } }