From b0fa953b28ee968b47dfe17ba71be6ba200ad782 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Mon, 24 Mar 2003 12:31:27 +0000 Subject: [PATCH] Fixed scsi target id problem, handware id compare no longer case sensitive Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@794 --- src/dos/cdrom.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/dos/cdrom.cpp b/src/dos/cdrom.cpp index 6bb181f7..4de630c0 100644 --- a/src/dos/cdrom.cpp +++ b/src/dos/cdrom.cpp @@ -74,8 +74,11 @@ BYTE CDROM_Interface_Aspi::GetHostAdapter(char* hardwareID) sh.SRB_HaId = i; pSendASPI32Command((LPSRB)&sh); if (sh.SRB_Status!=SS_COMP) continue; - + + // Indicates the maximum number of targets the adapter supports + // If the value is not 8 or 16, then it should be assumed max target is 8 max = (int)sh.HA_Unique[3]; + if ((max!=8) && (max!=16)) max = 8; for(j=0; j