Commit 5016716f authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 7afa53c0
......@@ -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
}
......
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