mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-28 04:25:34 +00:00
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
@ -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…
x
Reference in New Issue
Block a user