From be7fdaf374792e6fd4021367b10fcdaccc524ef2 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 20 Mar 2018 14:08:53 +0100 Subject: [PATCH] The IDE buffer is now once again memset'd to 0x00's at the beginning of ide_atapi_zip_identify(), fixes ATAPI Iomega ZIP drive identification. --- src/disk/hdc_ide.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/disk/hdc_ide.c b/src/disk/hdc_ide.c index 889058198..2b2ca6852 100644 --- a/src/disk/hdc_ide.c +++ b/src/disk/hdc_ide.c @@ -9,7 +9,7 @@ * Implementation of the IDE emulation for hard disks and ATAPI * CD-ROM devices. * - * Version: @(#)hdc_ide.c 1.0.40 2018/03/18 + * Version: @(#)hdc_ide.c 1.0.41 2018/03/20 * * Authors: Sarah Walker, * Miran Grca, @@ -503,6 +503,7 @@ static void ide_atapi_zip_identify(IDE *ide) uint8_t zip_id; int32_t d; + memset(ide->buffer, 0, 512); zip_id = atapi_zip_drives[ide->channel]; /* Using (2<<5) below makes the ASUS P/I-P54TP4XE misdentify the ZIP drive