Correct result of sceKernelGetThreadExitStatus(0).

Fixes Zettai Hero Project's options menu.
This commit is contained in:
Unknown W. Brackets committed 2013-08-14 23:58:23 -07:00
1 parent 9aafdeafcf
commit 0d5c66676d
1 file changed
+1 -3
+1 -3
View File
@@ -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;
}
}