Alexandre Julliard : mmdevapi: Don' t try to lookup functions if the library isn't found.
Alexandre Julliard
julliard at winehq.org
Wed May 5 11:08:34 CDT 2010
Module: wine
Branch: master
Commit: 41db8e5910502adfbd829a4f21f21aef76aca0be
URL: http://source.winehq.org/git/wine.git/?a=commit;h=41db8e5910502adfbd829a4f21f21aef76aca0be
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue May 4 21:30:07 2010 +0200
mmdevapi: Don't try to lookup functions if the library isn't found.
---
dlls/mmdevapi/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/mmdevapi/main.c b/dlls/mmdevapi/main.c
index 0467963..18d8f80 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); \
More information about the wine-cvs
mailing list