CDROM: allow to boot from MacOS 7.6 CDROM
[SCSI2SD-V6.git] / software / SCSI2SD / src / disk.c
index edda97e58fa394ada4bac71a1e097827e6bd6328..7a599390eb95bc76790af478451eb25b34dfdc45 100755 (executable)
@@ -244,7 +244,7 @@ static void doRead(uint32 lba, uint32 blocks)
                scsiDev.phase = DATA_IN;\r
                scsiDev.dataLen = 0; // No data yet\r
 \r
-               if ((blocks == 1) ||\r
+               if ((blocks * SDSectorsPerSCSISector(scsiDev.target->liveCfg.bytesPerSector) == 1) ||\r
                        unlikely(((uint64) lba) + blocks == capacity)\r
                        )\r
                {\r