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