mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
PollSema: don't allow values <= 0.
This commit is contained in:
parent
71e57043e8
commit
8517fbe761
1 changed files with 3 additions and 0 deletions
|
@ -290,6 +290,9 @@ int sceKernelPollSema(SceUID id, int wantedCount)
|
|||
{
|
||||
DEBUG_LOG(HLE,"sceKernelPollSema(%i, %i)", id, wantedCount);
|
||||
|
||||
if (wantedCount <= 0)
|
||||
return SCE_KERNEL_ERROR_ILLEGAL_COUNT;
|
||||
|
||||
u32 error;
|
||||
Semaphore *s = kernelObjects.Get<Semaphore>(id, error);
|
||||
if (s)
|
||||
|
|
Loading…
Add table
Reference in a new issue