Commit 8cda5102fc74d1a2d2ce141e0b7d562e7a0ad31d

Sylvain 2022-11-29T16:14:23

Fixed bug #6698 - VISA: wrong check sceKernelPollSema

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;