Commit 850ac564 authored by André Hentschel's avatar André Hentschel Committed by Michael Stefaniuc

xaudio2_7: Check return of IAudioClient_Start (Coverity).

Signed-off-by: 's avatarAndré Hentschel <nerv@dawncrow.de> Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 35eebeef) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 24a73018
......@@ -1700,7 +1700,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;
......
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