=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: winepulse: Add missing return after default case in a switch (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 18 10:33:31 CST 2015


Module: wine
Branch: master
Commit: 7f6634b2bd916b530e30ef8a850fefbc0dbdf687
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f6634b2bd916b530e30ef8a850fefbc0dbdf687

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Nov 16 22:36:12 2015 +0100

winepulse: Add missing return after default case in a switch (Coverity).

Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winepulse.drv/mmdevdrv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c
index 7369802..215a53e 100644
--- a/dlls/winepulse.drv/mmdevdrv.c
+++ b/dlls/winepulse.drv/mmdevdrv.c
@@ -285,6 +285,8 @@ static void pulse_contextcallback(pa_context *c, void *userdata)
     switch (pa_context_get_state(c)) {
         default:
             FIXME("Unhandled state: %i\n", pa_context_get_state(c));
+            return;
+
         case PA_CONTEXT_CONNECTING:
         case PA_CONTEXT_UNCONNECTED:
         case PA_CONTEXT_AUTHORIZING:




More information about the wine-cvs mailing list