Fix sceKernelCancelSema() to handle any negative.

So the test isn't failing.
This commit is contained in:
Unknown W. Brackets 2012-11-17 20:27:43 -08:00
parent 2290397b94
commit 40a6ebfabe

View file

@ -103,7 +103,7 @@ void sceKernelCancelSema(SceUID id, int newCount, u32 numWaitThreadsPtr)
*numWaitThreads = s->ns.numWaitThreads;
}
if (newCount == -1)
if (newCount < 0)
s->ns.currentCount = s->ns.initCount;
else
s->ns.currentCount = newCount;