Module: wine Branch: master Commit: 9689d6e29efbf209d5f3c88b5a6252a07d274662 URL: https://source.winehq.org/git/wine.git/?a=commit;h=9689d6e29efbf209d5f3c88b5...
Author: Sven Baars sven.wine@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@gmail.com Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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))