Blame SOURCES/0001-Fixed-bug-4108-Missing-break-statements-in-SDL_CDRes.patch

24d066
From b8dab2d1dae1f6fb0f2b466e2b26645d072b9aaa Mon Sep 17 00:00:00 2001
24d066
From: Sam Lantinga <slouken@libsdl.org>
24d066
Date: Sat, 24 Mar 2018 10:15:42 -0700
24d066
Subject: [PATCH] Fixed bug 4108 - Missing break statements in SDL_CDResume and
24d066
 SDL_CDStop
24d066
24d066
Ozkan Sezer
24d066
24d066
Two break statements are missing in SDL_cdrom.c:SDL_CDResume()
24d066
and SDL_CDStop(), which negate the returned code from driver
24d066
and always return 0.  The following patch adds those breaks.
24d066
24d066
--HG--
24d066
branch : SDL-1.2
24d066
---
24d066
 src/cdrom/SDL_cdrom.c | 2 ++
24d066
 1 file changed, 2 insertions(+)
24d066
24d066
diff --git a/src/cdrom/SDL_cdrom.c b/src/cdrom/SDL_cdrom.c
24d066
index 8f91bb1b3..fac2437e5 100644
24d066
--- a/src/cdrom/SDL_cdrom.c
24d066
+++ b/src/cdrom/SDL_cdrom.c
24d066
@@ -285,6 +285,7 @@ int SDL_CDResume(SDL_CD *cdrom)
24d066
 	switch (status) {
24d066
 		case CD_PAUSED:
24d066
 			retval = SDL_CDcaps.Resume(cdrom);
24d066
+			break;
24d066
 		default:
24d066
 			retval = 0;
24d066
 			break;
24d066
@@ -307,6 +308,7 @@ int SDL_CDStop(SDL_CD *cdrom)
24d066
 		case CD_PLAYING:
24d066
 		case CD_PAUSED:
24d066
 			retval = SDL_CDcaps.Stop(cdrom);
24d066
+			break;
24d066
 		default:
24d066
 			retval = 0;
24d066
 			break;
24d066
-- 
24d066
2.17.1
24d066