Commit 9689d6e2 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

dsound: Add missing SetEventHandle error handling (Coverity).

parent df4aaff7
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment