Don't allow wait in event flags without dispatch.

But this happens after other param checks.
This commit is contained in:
Unknown W. Brackets 2013-04-06 12:29:30 -07:00
parent e6f3c7991c
commit 0595e5099e

View file

@ -390,6 +390,9 @@ int sceKernelWaitEventFlag(SceUID id, u32 bits, u32 wait, u32 outBitsPtr, u32 ti
if (bits == 0)
return SCE_KERNEL_ERROR_EVF_ILPAT;
if (!__KernelIsDispatchEnabled())
return SCE_KERNEL_ERROR_CAN_NOT_WAIT;
u32 error;
EventFlag *e = kernelObjects.Get<EventFlag>(id, error);
if (e)
@ -443,6 +446,9 @@ int sceKernelWaitEventFlagCB(SceUID id, u32 bits, u32 wait, u32 outBitsPtr, u32
if (bits == 0)
return SCE_KERNEL_ERROR_EVF_ILPAT;
if (!__KernelIsDispatchEnabled())
return SCE_KERNEL_ERROR_CAN_NOT_WAIT;
u32 error;
EventFlag *e = kernelObjects.Get<EventFlag>(id, error);
if (e)