From 69ec4f2193f93fbd2454521699dfdaed68c4ec43 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 18 May 2017 00:16:04 +0200 Subject: [PATCH] Fixed IDE CD-ROM detection, fixes ATAPI PIO and DMA CD-ROM's. --- src/ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ide.c b/src/ide.c index b2b5a51bc..18db7d4d6 100644 --- a/src/ide.c +++ b/src/ide.c @@ -132,7 +132,7 @@ int ide_drive_is_cdrom(IDE *ide) } else { - if ((cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type > 0) && (cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type < 3)) + if ((cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type > 1) && (cdrom_drives[atapi_cdrom_drives[ide->channel]].bus_type < 4)) { return 1; }