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:
lioncash 2013-05-30 11:47:10 -04:00
parent 5a48b5cf20
commit 81a91fbcbb

View File

@ -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);
}