xaudio2: Use an HRESULT return code.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cfb88194f2
commit
2b2b179422
|
@ -1551,7 +1551,7 @@ static HRESULT WINAPI IXAudio2Impl_CreateMasteringVoice(IXAudio2 *iface,
|
||||||
if(!deviceId){
|
if(!deviceId){
|
||||||
if(This->ndevs == 0){
|
if(This->ndevs == 0){
|
||||||
LeaveCriticalSection(&This->lock);
|
LeaveCriticalSection(&This->lock);
|
||||||
return ERROR_NOT_FOUND;
|
return E_NOTFOUND;
|
||||||
}
|
}
|
||||||
deviceId = This->devids[0];
|
deviceId = This->devids[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue