winspool: Add a TRACE when wine_dlopen for SONAME_LIBCUPS failed.

This commit is contained in:
Detlef Riekenberg 2007-07-30 19:41:03 +02:00 committed by Alexandre Julliard
parent 17f1c29457
commit f976fc8ead
1 changed files with 7 additions and 4 deletions

View File

@ -428,11 +428,14 @@ static BOOL CUPS_LoadPrinters(void)
PRINTER_INFO_2A pinfo2a;
char *port,*devline;
HKEY hkeyPrinter, hkeyPrinters, hkey;
char loaderror[256];
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, NULL, 0);
if (!cupshandle)
return FALSE;
TRACE("loaded %s\n", SONAME_LIBCUPS);
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, loaderror, sizeof(loaderror));
if (!cupshandle) {
TRACE("%s\n", loaderror);
return FALSE;
}
TRACE("%p: %s loaded\n", cupshandle, SONAME_LIBCUPS);
#define DYNCUPS(x) \
p##x = wine_dlsym(cupshandle, #x, NULL,0); \