mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 19:54:11 +00:00
quartz: Return correct error when no audio devices are present.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
79264b27c1
commit
a23402f6e7
|
@ -1015,7 +1015,7 @@ HRESULT dsound_render_create(IUnknown *outer, IUnknown **out)
|
||||||
IUnknown_Release(object->system_clock);
|
IUnknown_Release(object->system_clock);
|
||||||
strmbase_filter_cleanup(&object->filter);
|
strmbase_filter_cleanup(&object->filter);
|
||||||
free(object);
|
free(object);
|
||||||
return hr;
|
return hr == DSERR_NODRIVER ? VFW_E_NO_AUDIO_HARDWARE : hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(hr = IDirectSound8_SetCooperativeLevel(object->dsound,
|
if (FAILED(hr = IDirectSound8_SetCooperativeLevel(object->dsound,
|
||||||
|
|
Loading…
Reference in a new issue