From 9689d6e29efbf209d5f3c88b5a6252a07d274662 Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Fri, 22 Feb 2019 14:03:13 +0100 Subject: [PATCH] dsound: Add missing SetEventHandle error handling (Coverity). Signed-off-by: Sven Baars Signed-off-by: Andrew Eikum Signed-off-by: Alexandre Julliard --- 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 a30fc5e0a54..9f41a2b47fc 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))