Fixed bug #6698 - VISA: wrong check sceKernelPollSema
diff --git a/src/thread/vita/SDL_syssem.c b/src/thread/vita/SDL_syssem.c
index 0082e00..781e9e9 100644
--- a/src/thread/vita/SDL_syssem.c
+++ b/src/thread/vita/SDL_syssem.c
@@ -87,8 +87,8 @@ int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
}
if (timeout == 0) {
- res = sceKernelPollSema(sem->semid, 1);
- if (res < 0) {
+ int res2 = sceKernelPollSema(sem->semid, 1);
+ if (res2 < 0) {
return SDL_MUTEX_TIMEDOUT;
}
return 0;