PSP2: Fix ConditionWaitTimed

This commit is contained in:
Jeffrey Pfau 2015-07-05 18:19:26 -07:00
parent 9a9381bda9
commit 2ae4030c19
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ static inline int ConditionWaitTimed(Condition* cond, Mutex* mutex, int32_t time
if (timeoutMs > 0) {
timeout = timeoutMs;
}
sceKernelWaitSema(cond->semaphore, 1, &timeout);
int ret = sceKernelWaitSema(cond->semaphore, 1, &timeout);
MutexLock(mutex);
return 0;
return ret;
}
static inline int ConditionWake(Condition* cond) {