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>
(cherry picked from commit 9689d6e29e)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Sven Baars 2019-02-22 14:03:13 +01:00 committed by Michael Stefaniuc
parent 1ff87a653f
commit ffc5659373
1 changed files with 5 additions and 1 deletions

View File

@ -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))