winecoreaudio: Fix an error check (bad copy-paste).

This commit is contained in:
Ken Thomases 2009-10-11 14:14:03 -05:00 committed by Alexandre Julliard
parent c67f4cd565
commit 687db1c680

View File

@ -85,7 +85,7 @@ int AudioUnit_CreateDefaultAudioUnit(void *wwo, AudioUnit *au)
return 0;
err = OpenAComponent(comp, au);
if (comp == NULL)
if (err != noErr || *au == NULL)
return 0;
callbackStruct.inputProc = CoreAudio_woAudioUnitIOProc;