mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-24 02:33:04 +00:00
Fixed start pointer computation
This commit is contained in:
parent
d771788f90
commit
410a4d37b6
1
rdisk.c
1
rdisk.c
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user