Browse Source

Fixed bug #6698 - VISA: wrong check sceKernelPollSema

Sylvain 2 years ago
parent
commit
8cda5102fc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/thread/vita/SDL_syssem.c

+ 2 - 2
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;