Core: Add argmask for threadhacks to prevent crash.

Every HLEFunction should have an argmask.  Some asserts for shutdown
crashes someone was seeing when calling HLE funcs from a shutdown
function.
This commit is contained in:
Unknown W. Brackets 2020-03-22 23:25:22 -07:00
parent 56a1b6d03a
commit 9cb74691b6
3 changed files with 10 additions and 8 deletions

View file

@ -1514,6 +1514,7 @@ void __KernelWaitCurThread(WaitType type, SceUID waitID, u32 waitValue, u32 time
}
PSPThread *thread = __GetCurrentThread();
assert(thread != nullptr);
thread->nt.waitID = waitID;
thread->nt.waitType = type;
__KernelChangeThreadState(thread, ThreadStatus(THREADSTATUS_WAIT | (thread->nt.status & THREADSTATUS_SUSPEND)));