Commit 2b2b1794 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

xaudio2: Use an HRESULT return code.

parent cfb88194
......@@ -1551,7 +1551,7 @@ static HRESULT WINAPI IXAudio2Impl_CreateMasteringVoice(IXAudio2 *iface,
if(!deviceId){
if(This->ndevs == 0){
LeaveCriticalSection(&This->lock);
return ERROR_NOT_FOUND;
return E_NOTFOUND;
}
deviceId = This->devids[0];
}
......
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