mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-14 21:20:28 +00:00
Fixed bug #6698 - VISA: wrong check sceKernelPollSema
This commit is contained in:
parent
ee13e8c76b
commit
8cda5102fc
|
@ -87,8 +87,8 @@ int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timeout == 0) {
|
if (timeout == 0) {
|
||||||
res = sceKernelPollSema(sem->semid, 1);
|
int res2 = sceKernelPollSema(sem->semid, 1);
|
||||||
if (res < 0) {
|
if (res2 < 0) {
|
||||||
return SDL_MUTEX_TIMEDOUT;
|
return SDL_MUTEX_TIMEDOUT;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue