mirror of
https://github.com/ksherlock/mpw.git
synced 2025-01-24 03:34:42 +00:00
SetMemErrror more often.
This commit is contained in:
parent
457c045ebe
commit
a40bf9ee39
@ -878,7 +878,7 @@ namespace MM
|
||||
if (iter == HandleMap.end()) return SetMemError(MacOS::memWZErr);
|
||||
iter->second.purgeable = true;
|
||||
|
||||
return 0;
|
||||
return SetMemError(0);
|
||||
}
|
||||
|
||||
uint16_t HLock(uint16_t trap)
|
||||
@ -901,7 +901,7 @@ namespace MM
|
||||
if (iter == HandleMap.end()) return SetMemError(MacOS::memWZErr);
|
||||
|
||||
iter->second.locked = true;
|
||||
return 0;
|
||||
return SetMemError(0);
|
||||
}
|
||||
|
||||
uint16_t HUnlock(uint16_t trap)
|
||||
@ -924,7 +924,7 @@ namespace MM
|
||||
if (iter == HandleMap.end()) return SetMemError(MacOS::memWZErr);
|
||||
|
||||
iter->second.locked = false;
|
||||
return 0;
|
||||
return SetMemError(0);
|
||||
}
|
||||
|
||||
#pragma mark - OS Utility Routines
|
||||
@ -956,7 +956,7 @@ namespace MM
|
||||
}
|
||||
|
||||
cpuSetAReg(0, destHandle);
|
||||
return d0;
|
||||
return d0; // SetMemError called by Native::NewHandle.
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user