[PATCH] dsound: Add missing SetEventHandle error handling (Coverity).
Sven Baars
sven.wine at gmail.com
Fri Feb 22 07:03:13 CST 2019
Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
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 a30fc5e0a5..9f41a2b47f 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))
--
2.17.1
More information about the wine-devel
mailing list