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>
This commit is contained in:
parent
df4aaff7a3
commit
9689d6e29e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue