From c885d053787632d9301572c37bcd4cdee44f3a0e Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Wed, 12 Mar 2008 02:06:37 -0500 Subject: [PATCH] coreaudio: Signal driver load failure if any component fails to initialize. --- dlls/winecoreaudio.drv/coreaudio.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/winecoreaudio.drv/coreaudio.c b/dlls/winecoreaudio.drv/coreaudio.c index 5452d3b850c..0690afd7f43 100644 --- a/dlls/winecoreaudio.drv/coreaudio.c +++ b/dlls/winecoreaudio.drv/coreaudio.c @@ -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; }