Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 4108 - Missing break statements in SDL_CDResume and SDL_CDStop
Ozkan Sezer

Two break statements are missing in SDL_cdrom.c:SDL_CDResume()
and SDL_CDStop(), which negate the returned code from driver
and always return 0.  The following patch adds those breaks.
  • Loading branch information
slouken committed Mar 24, 2018
1 parent 4ddd306 commit 34951f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cdrom/SDL_cdrom.c
Expand Up @@ -285,6 +285,7 @@ int SDL_CDResume(SDL_CD *cdrom)
switch (status) {
case CD_PAUSED:
retval = SDL_CDcaps.Resume(cdrom);
break;
default:
retval = 0;
break;
Expand All @@ -307,6 +308,7 @@ int SDL_CDStop(SDL_CD *cdrom)
case CD_PLAYING:
case CD_PAUSED:
retval = SDL_CDcaps.Stop(cdrom);
break;
default:
retval = 0;
break;
Expand Down

0 comments on commit 34951f7

Please sign in to comment.