Commit c885d053 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

coreaudio: Signal driver load failure if any component fails to initialize.

parent fa2d39e4
......@@ -42,9 +42,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(coreaudio);
static LRESULT CoreAudio_drvLoad(void)
{
TRACE("()\n");
CoreAudio_WaveInit();
CoreAudio_MIDIInit();
CoreAudio_MixerInit();
if (CoreAudio_WaveInit() != DRV_SUCCESS ||
CoreAudio_MIDIInit() != DRV_SUCCESS ||
CoreAudio_MixerInit() != DRV_SUCCESS)
return DRV_FAILURE;
return DRV_SUCCESS;
}
......
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