Fixed bug #6698 - VISA: wrong check sceKernelPollSema

main
Sylvain 2022-11-29 16:14:23 +01:00
parent f6db1aba66
commit 38c281fbc0
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,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;