1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +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:
Eric Pouech 2023-10-17 19:58:17 +02:00 committed by Alexandre Julliard
parent 79264b27c1
commit a23402f6e7

View File

@ -1015,7 +1015,7 @@ HRESULT dsound_render_create(IUnknown *outer, IUnknown **out)
IUnknown_Release(object->system_clock);
strmbase_filter_cleanup(&object->filter);
free(object);
return hr;
return hr == DSERR_NODRIVER ? VFW_E_NO_AUDIO_HARDWARE : hr;
}
if (FAILED(hr = IDirectSound8_SetCooperativeLevel(object->dsound,