From 8b1921e08aa73e15d6f603b0356a3029da2fedcb Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 25 Mar 2018 01:21:10 +0300 Subject: [PATCH] OS/2 SDL_Delay(): add missing else : it looks like an 'else' is missing after the 'already time-critical' case for if(DosEnterMustComplete()) check. --- src/timer/os2/SDL_systimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer/os2/SDL_systimer.c b/src/timer/os2/SDL_systimer.c index c82d53146..66db03849 100644 --- a/src/timer/os2/SDL_systimer.c +++ b/src/timer/os2/SDL_systimer.c @@ -134,7 +134,7 @@ DECLSPEC void SDLCALL SDL_Delay(Uint32 ms) /* tib->tib_ptib2->tib2_ulpri = 0x0300;*/ /* We do not want to run at high priority if a signal causes us to longjmp() out of this section... */ - if (DosEnterMustComplete(&nesting)) + else if (DosEnterMustComplete(&nesting)) switch_priority = 0; else DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);