SDL: Fixed bug #6698 - VISA: wrong check sceKernelPollSema

From 38c281fbc09fd6622f85a7c7fb63a02895ff717f Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Tue, 29 Nov 2022 16:14:23 +0100
Subject: [PATCH] Fixed bug #6698 - VISA: wrong check sceKernelPollSema

---
 src/thread/vita/SDL_syssem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/thread/vita/SDL_syssem.c b/src/thread/vita/SDL_syssem.c
index 5867b60f1177..f8464c940872 100644
--- a/src/thread/vita/SDL_syssem.c
+++ b/src/thread/vita/SDL_syssem.c
@@ -85,8 +85,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;