mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 01:34:38 +00:00 
			
		
		
		
	Fixed bug #6698 - VISA: wrong check sceKernelPollSema
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user