coreaudio: Signal driver load failure if any component fails to initialize.
This commit is contained in:
parent
fa2d39e45f
commit
c885d05378
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue