Fixed start pointer computation

This commit is contained in:
Zane Kaminski 2020-06-24 14:11:30 -04:00
parent d771788f90
commit 410a4d37b6

View File

@ -191,6 +191,7 @@ OSErr RDiskPrime(IOParamPtr p, DCtlPtr d) {
case fsFromMark: offset = d->dCtlPosition + p->ioPosOffset; break;
default: offset = 0; break; //FIXME: Error if unsupported ioPosMode?
}
disk += offset;
// Bounds checking
/*if (offset >= RDiskSize || p->ioReqCount >= RDiskSize ||
offset + p->ioReqCount >= RDiskSize ||