Skip to content
Snippets Groups Projects
Commit 35eebeef authored by André Zwing's avatar André Zwing Committed by Alexandre Julliard
Browse files

xaudio2_7: Check return of IAudioClient_Start (Coverity).

parent 2cff59ed
No related branches found
No related tags found
No related merge requests found
......@@ -1689,7 +1689,13 @@ static HRESULT WINAPI IXAudio2Impl_CreateMasteringVoice(IXAudio2 *iface,
goto exit;
}
IAudioClient_Start(This->aclient);
hr = IAudioClient_Start(This->aclient);
if (FAILED(hr))
{
WARN("Start(IAudioClient) failed: %08x\n", hr);
hr = COMPAT_E_DEVICE_INVALIDATED(This->version);
goto exit;
}
if(This->version <= 20)
*ppMasteringVoice = (IXAudio2MasteringVoice*)&This->IXAudio20MasteringVoice_iface;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment