Sven Baars : dsound: Add missing SetEventHandle error handling (Coverity).

Alexandre Julliard julliard at winehq.org
Wed May 15 14:32:23 CDT 2019


Module: wine
Branch: stable
Commit: ffc5659373e1f07f541754e8329cc85508b8ed98
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ffc5659373e1f07f541754e8329cc85508b8ed98

Author: Sven Baars <sven.wine at gmail.com>
Date:   Fri Feb 22 14:03:13 2019 +0100

dsound: Add missing SetEventHandle error handling (Coverity).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 9689d6e29efbf209d5f3c88b5a6252a07d274662)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/dsound/primary.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index a30fc5e..9f41a2b4 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -319,7 +319,11 @@ HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave)
         return hres;
     }
 
-    IAudioClient_SetEventHandle(client, device->sleepev);
+    hres = IAudioClient_SetEventHandle(client, device->sleepev);
+    if (FAILED(hres)) {
+        WARN("SetEventHandle failed: %08x\n", hres);
+        goto err;
+    }
 
     hres = IAudioClient_GetService(client, &IID_IAudioRenderClient, (void**)&render);
     if(FAILED(hres))




More information about the wine-cvs mailing list