mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-21 12:30:49 +00:00
Fix 24-bit format bug
This commit is contained in:
parent
980eed4c88
commit
1ec1268e97
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
5
rdisk.c
5
rdisk.c
@ -235,8 +235,9 @@ OSErr RDCtl(CntrlParamPtr p, DCtlPtr d) {
|
|||||||
case kFormat:
|
case kFormat:
|
||||||
if (!c->status.diskInPlace || c->status.writeProt ||
|
if (!c->status.diskInPlace || c->status.writeProt ||
|
||||||
!c->ramdisk) { return controlErr; }
|
!c->ramdisk) { return controlErr; }
|
||||||
char zero = 0;
|
long long zero = 0;
|
||||||
patch24(c->ramdisk, &zero);
|
if (*MMU32bit) { copy24(c->ramdisk, &zero, sizeof(zero)); }
|
||||||
|
else { copy24(c->ramdisk, StripAddress(&zero), sizeof(zero)); }
|
||||||
return noErr;
|
return noErr;
|
||||||
case kVerify:
|
case kVerify:
|
||||||
if (!c->status.diskInPlace) { return controlErr; }
|
if (!c->status.diskInPlace) { return controlErr; }
|
||||||
|
Loading…
Reference in New Issue
Block a user