Return proper errors while dispatch disabled.

In at least the majority of waits.
This commit is contained in:
Unknown W. Brackets committed 2013-08-27 23:55:37 -07:00
1 parent 252bf04c64
commit 61fae4e920
7 files changed
+81 -24

No files matched your search

+6
View File
@@ -2541,6 +2541,9 @@ int sceKernelWaitThreadEnd(SceUID threadID, u32 timeoutPtr)
if (threadID == 0 || threadID == currentThread)
return SCE_KERNEL_ERROR_ILLEGAL_THID;
if (!__KernelIsDispatchEnabled())
return SCE_KERNEL_ERROR_CAN_NOT_WAIT;
u32 error;
Thread *t = kernelObjects.Get<Thread>(threadID, error);
if (t)
@@ -2567,6 +2570,9 @@ int sceKernelWaitThreadEndCB(SceUID threadID, u32 timeoutPtr)
if (threadID == 0 || threadID == currentThread)
return SCE_KERNEL_ERROR_ILLEGAL_THID;
if (!__KernelIsDispatchEnabled())
return SCE_KERNEL_ERROR_CAN_NOT_WAIT;
u32 error;
Thread *t = kernelObjects.Get<Thread>(threadID, error);
if (t)