Ensure code inside method __KernelSwitchContext in sceKernelThread.cpp isn't unintentionally executed.
The null check around line 2935 for target also makes me think this was supposed to have been done.
This commit is contained in:
parent
5a48b5cf20
commit
81a91fbcbb
1 changed files with 6 additions and 3 deletions
|
@ -2957,9 +2957,12 @@ void __KernelSwitchContext(Thread *target, const char *reason)
|
|||
oldUID, oldPC, currentThread, currentMIPS->pc);
|
||||
}
|
||||
|
||||
// No longer waiting.
|
||||
target->nt.waitType = WAITTYPE_NONE;
|
||||
target->nt.waitID = 0;
|
||||
if (target)
|
||||
{
|
||||
// No longer waiting.
|
||||
target->nt.waitType = WAITTYPE_NONE;
|
||||
target->nt.waitID = 0;
|
||||
}
|
||||
|
||||
__KernelExecutePendingMipsCalls(target, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue