From 41db8e5910502adfbd829a4f21f21aef76aca0be Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 4 May 2010 21:30:07 +0200 Subject: [PATCH] mmdevapi: Don't try to lookup functions if the library isn't found. --- dlls/mmdevapi/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/mmdevapi/main.c b/dlls/mmdevapi/main.c index 04679631018..18d8f80fd90 100644 --- a/dlls/mmdevapi/main.c +++ b/dlls/mmdevapi/main.c @@ -174,7 +174,11 @@ static void load_libopenal(void) char error[128]; openal_handle = wine_dlopen(SONAME_LIBOPENAL, RTLD_NOW, error, sizeof(error)); if (!openal_handle) + { ERR("Couldn't load " SONAME_LIBOPENAL ": %s\n", error); + return; + } + #define LOAD_FUNCPTR(f) \ if((p##f = wine_dlsym(openal_handle, #f, NULL, 0)) == NULL) { \ ERR("Couldn't lookup %s in libopenal\n", #f); \