diff options
author | Chris Robinson <[email protected]> | 2010-03-23 17:45:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-23 17:45:37 -0700 |
commit | 52834744fa4236717e45d9be588c4b4e26f562cc (patch) | |
tree | 55515841bea251617a13d02a4bb544b0a7da6a26 /Alc/portaudio.c | |
parent | 3e9934e810f18c8336665a1b057672aabf6d1e2a (diff) |
Return if PortAudio fails to load in Windows
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r-- | Alc/portaudio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c index 94ae3048..8281da17 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -78,8 +78,6 @@ void *pa_load(void) # define PALIB "libportaudio.so.2" #endif pa_handle = dlopen(PALIB, RTLD_NOW); - if(!pa_handle) - return NULL; dlerror(); #define LOAD_FUNC(f) do { \ @@ -99,6 +97,9 @@ void *pa_load(void) #define LOAD_FUNC(f) p##f = f #endif + if(!pa_handle) + return NULL; + LOAD_FUNC(Pa_Initialize); LOAD_FUNC(Pa_Terminate); LOAD_FUNC(Pa_GetErrorText); |