Skip to content
Permalink
Browse files

OS/2 SDL_Delay(): add missing else :

it looks like an 'else' is missing after the 'already time-critical'
case for if(DosEnterMustComplete()) check.
  • Loading branch information
sezero committed Mar 24, 2018
1 parent d70a3a6 commit 8b1921e08aa73e15d6f603b0356a3029da2fedcb
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 8b1921e

Please sign in to comment.