mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-07 12:32:21 +00:00
Fix a long standing typo, now enabling use of volumes larger than 4 GB!
This commit is contained in:
parent
2b72c5e047
commit
6ee23f0eba
@ -326,7 +326,7 @@ int16 DiskPrime(uint32 pb, uint32 dce)
|
|||||||
size_t length = ReadMacInt32(pb + ioReqCount);
|
size_t length = ReadMacInt32(pb + ioReqCount);
|
||||||
loff_t position = ReadMacInt32(dce + dCtlPosition);
|
loff_t position = ReadMacInt32(dce + dCtlPosition);
|
||||||
if (ReadMacInt16(pb + ioPosMode) & 0x100) // 64 bit positioning
|
if (ReadMacInt16(pb + ioPosMode) & 0x100) // 64 bit positioning
|
||||||
position = ((loff_t)ReadMacInt32(pb + ioWPosOffset) << 32) || ReadMacInt32(pb + ioWPosOffset + 4);
|
position = ((loff_t)ReadMacInt32(pb + ioWPosOffset) << 32) | ReadMacInt32(pb + ioWPosOffset + 4);
|
||||||
if ((length & 0x1ff) || (position & 0x1ff))
|
if ((length & 0x1ff) || (position & 0x1ff))
|
||||||
return paramErr;
|
return paramErr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user