mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix sceKernelCancelSema() to handle any negative.
So the test isn't failing.
This commit is contained in:
parent
2290397b94
commit
40a6ebfabe
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void sceKernelCancelSema(SceUID id, int newCount, u32 numWaitThreadsPtr)
|
||||||
*numWaitThreads = s->ns.numWaitThreads;
|
*numWaitThreads = s->ns.numWaitThreads;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newCount == -1)
|
if (newCount < 0)
|
||||||
s->ns.currentCount = s->ns.initCount;
|
s->ns.currentCount = s->ns.initCount;
|
||||||
else
|
else
|
||||||
s->ns.currentCount = newCount;
|
s->ns.currentCount = newCount;
|
||||||
|
|
Loading…
Add table
Reference in a new issue