winspool: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7afa53c0f2
commit
5016716f6e
|
@ -107,7 +107,6 @@
|
|||
#define NONAMELESSSTRUCT
|
||||
#define NONAMELESSUNION
|
||||
|
||||
#include "wine/library.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.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)
|
||||
{
|
||||
cupshandle = wine_dlopen( SONAME_LIBCUPS, RTLD_NOW, NULL, 0 );
|
||||
cupshandle = dlopen( SONAME_LIBCUPS, RTLD_NOW );
|
||||
if (!cupshandle) return;
|
||||
|
||||
TRACE("%p: %s loaded\n", cupshandle, SONAME_LIBCUPS);
|
||||
|
||||
#define DO_FUNC(x) \
|
||||
p##x = wine_dlsym( cupshandle, #x, NULL, 0 ); \
|
||||
p##x = dlsym( cupshandle, #x ); \
|
||||
if (!p##x) \
|
||||
{ \
|
||||
ERR("failed to load symbol %s\n", #x); \
|
||||
|
@ -902,7 +901,7 @@ static void load_cups(void)
|
|||
}
|
||||
CUPS_FUNCS;
|
||||
#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;
|
||||
#undef DO_FUNC
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue