mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Correct result of sceKernelGetThreadExitStatus(0).
Fixes Zettai Hero Project's options menu.
This commit is contained in:
1 parent
9aafdeafcf
commit
0d5c66676d
1 file changed
+1
-3
@@ -1356,9 +1356,6 @@ u32 sceKernelReferThreadRunStatus(u32 threadID, u32 statusPtr)
|
||||
|
||||
int sceKernelGetThreadExitStatus(SceUID threadID)
|
||||
{
|
||||
if (threadID == 0)
|
||||
threadID = __KernelGetCurThread();
|
||||
|
||||
u32 error;
|
||||
Thread *t = kernelObjects.Get<Thread>(threadID, error);
|
||||
if (t)
|
||||
@@ -1370,6 +1367,7 @@ int sceKernelGetThreadExitStatus(SceUID threadID)
|
||||
}
|
||||
else
|
||||
{
|
||||
DEBUG_LOG(HLE,"sceKernelGetThreadExitStatus(%i): not dormant", threadID);
|
||||
return SCE_KERNEL_ERROR_NOT_DORMANT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user