Commit 41db8e59 authored by Alexandre Julliard's avatar Alexandre Julliard

mmdevapi: Don't try to lookup functions if the library isn't found.

parent ac69fcb1
......@@ -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); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment