Skip to content

Commit

Permalink
OS/2 SDL_Delay(): add missing else :
Browse files Browse the repository at this point in the history
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 8b1921e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timer/os2/SDL_systimer.c
Expand Up @@ -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);
Expand Down

0 comments on commit 8b1921e

Please sign in to comment.