mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
Don't allow sceKernelWakeupThread() on cur thread.
I don't know why you wouldn't allow this, but the PSP firmware doesn't.
This commit is contained in:
1 parent
722b878428
commit
648dd5f154
1 file changed
+6
@@ -2570,6 +2570,12 @@ bool __KernelThreadSortPriority(SceUID thread1, SceUID thread2)
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
int sceKernelWakeupThread(SceUID uid)
|
||||
{
|
||||
if (uid == currentThread)
|
||||
{
|
||||
WARN_LOG_REPORT(HLE, "sceKernelWakeupThread(%i): unable to wakeup current thread", uid);
|
||||
return SCE_KERNEL_ERROR_ILLEGAL_THID;
|
||||
}
|
||||
|
||||
u32 error;
|
||||
Thread *t = kernelObjects.Get<Thread>(uid, error);
|
||||
if (t)
|
||||
|
||||
Reference in new issue
Block a user