mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-28 16:00:58 +00:00
Merge pull request #3177 from unknownbrackets/thread-funcs
Correct result of sceKernelGetThreadExitStatus(0)
This commit is contained in:
commit
5493de16e4
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user