winspool: 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 22:43:29 +02:00
parent 7afa53c0f2
commit 5016716f6e
1 changed files with 3 additions and 4 deletions

View File

@ -107,7 +107,6 @@
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define NONAMELESSUNION #define NONAMELESSUNION
#include "wine/library.h"
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"
@ -887,13 +886,13 @@ static cups_ptype_t get_cups_printer_type( const cups_dest_t *dest )
static void load_cups(void) static void load_cups(void)
{ {
cupshandle = wine_dlopen( SONAME_LIBCUPS, RTLD_NOW, NULL, 0 ); cupshandle = dlopen( SONAME_LIBCUPS, RTLD_NOW );
if (!cupshandle) return; if (!cupshandle) return;
TRACE("%p: %s loaded\n", cupshandle, SONAME_LIBCUPS); TRACE("%p: %s loaded\n", cupshandle, SONAME_LIBCUPS);
#define DO_FUNC(x) \ #define DO_FUNC(x) \
p##x = wine_dlsym( cupshandle, #x, NULL, 0 ); \ p##x = dlsym( cupshandle, #x ); \
if (!p##x) \ if (!p##x) \
{ \ { \
ERR("failed to load symbol %s\n", #x); \ ERR("failed to load symbol %s\n", #x); \
@ -902,7 +901,7 @@ static void load_cups(void)
} }
CUPS_FUNCS; CUPS_FUNCS;
#undef DO_FUNC #undef DO_FUNC
#define DO_FUNC(x) p##x = wine_dlsym( cupshandle, #x, NULL, 0 ) #define DO_FUNC(x) p##x = dlsym( cupshandle, #x )
CUPS_OPT_FUNCS; CUPS_OPT_FUNCS;
#undef DO_FUNC #undef DO_FUNC
} }