mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-18 23:06:21 +00:00
Change control and status error handling
This commit is contained in:
parent
74c030c733
commit
58416dfc78
6
rdisk.c
6
rdisk.c
@ -274,14 +274,14 @@ OSErr RDiskPrime(IOParamPtr p, DCtlPtr d) {
|
|||||||
#pragma parameter __D0 RDiskControl(__A0, __A1)
|
#pragma parameter __D0 RDiskControl(__A0, __A1)
|
||||||
OSErr RDiskControl(IOParamPtr p, DCtlPtr d) {
|
OSErr RDiskControl(IOParamPtr p, DCtlPtr d) {
|
||||||
RDiskStorage_t *c;
|
RDiskStorage_t *c;
|
||||||
// Do nothing if dCtlStorage null
|
|
||||||
if (!d->dCtlStorage) { return noErr; }
|
|
||||||
// Dereference dCtlStorage to get pointer to our context
|
// Dereference dCtlStorage to get pointer to our context
|
||||||
c = *(RDiskStorage_t**)d->dCtlStorage;
|
c = *(RDiskStorage_t**)d->dCtlStorage;
|
||||||
|
|
||||||
// Handle control request based on csCode
|
// Handle control request based on csCode
|
||||||
switch (((CntrlParamPtr)p)->csCode) {
|
switch (((CntrlParamPtr)p)->csCode) {
|
||||||
//case accRun: return RDiskAccRun(p, d, c);
|
/*case accRun:
|
||||||
|
if (!d->dCtlStorage) { return noErr; }
|
||||||
|
return RDiskAccRun(p, d, c);*/
|
||||||
default: return controlErr;
|
default: return controlErr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user