gphoto2.ds: Use standard dlopen() instead of the libwine wrappers.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-04-06 11:46:38 +02:00
parent 55e1e0c525
commit a18462424f
1 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,6 @@
#include "gphoto2_i.h" #include "gphoto2_i.h"
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
#include "wine/library.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(twain); WINE_DEFAULT_DEBUG_CHANNEL(twain);
@ -46,10 +45,10 @@ MAKE_FUNCPTR(jpeg_destroy_decompress);
static void *load_libjpeg(void) static void *load_libjpeg(void)
{ {
if((libjpeg_handle = wine_dlopen(SONAME_LIBJPEG, RTLD_NOW, NULL, 0)) != NULL) { if((libjpeg_handle = dlopen(SONAME_LIBJPEG, RTLD_NOW)) != NULL) {
#define LOAD_FUNCPTR(f) \ #define LOAD_FUNCPTR(f) \
if((p##f = wine_dlsym(libjpeg_handle, #f, NULL, 0)) == NULL) { \ if((p##f = dlsym(libjpeg_handle, #f)) == NULL) { \
libjpeg_handle = NULL; \ libjpeg_handle = NULL; \
return NULL; \ return NULL; \
} }