Commit 79264b27 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dsound: Forward error code when device cannot be found.

parent fba6b7a1
......@@ -288,9 +288,10 @@ static HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGU
IsEqualGUID(lpcGUID, &DSDEVID_DefaultVoiceCapture))
return DSERR_NODRIVER;
if (GetDeviceID(lpcGUID, &devGUID) != DS_OK) {
hr = GetDeviceID(lpcGUID, &devGUID);
if (FAILED(hr)) {
WARN("invalid parameter: lpcGUID\n");
return DSERR_INVALIDPARAM;
return hr;
}
hr = get_mmdevice(eRender, &devGUID, &mmdevice);
......
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