From 40a6ebfabe6c969adb3c3ad2ff12b40b30e47bff Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 17 Nov 2012 20:27:43 -0800 Subject: [PATCH] Fix sceKernelCancelSema() to handle any negative. So the test isn't failing. --- Core/HLE/sceKernelSemaphore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelSemaphore.cpp b/Core/HLE/sceKernelSemaphore.cpp index ee015af652..459f37c2c3 100644 --- a/Core/HLE/sceKernelSemaphore.cpp +++ b/Core/HLE/sceKernelSemaphore.cpp @@ -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;