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

This commit is contained in:
Ken Thomases 2008-03-12 02:06:37 -05:00 committed by Alexandre Julliard
parent fa2d39e45f
commit c885d05378
1 changed files with 6 additions and 3 deletions

View File

@ -42,9 +42,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(coreaudio);
static LRESULT CoreAudio_drvLoad(void) static LRESULT CoreAudio_drvLoad(void)
{ {
TRACE("()\n"); TRACE("()\n");
CoreAudio_WaveInit();
CoreAudio_MIDIInit(); if (CoreAudio_WaveInit() != DRV_SUCCESS ||
CoreAudio_MixerInit(); CoreAudio_MIDIInit() != DRV_SUCCESS ||
CoreAudio_MixerInit() != DRV_SUCCESS)
return DRV_FAILURE;
return DRV_SUCCESS; return DRV_SUCCESS;
} }