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; PRINTER_INFO_2A pinfo2a;
char *port,*devline; char *port,*devline;
HKEY hkeyPrinter, hkeyPrinters, hkey; HKEY hkeyPrinter, hkeyPrinters, hkey;
char loaderror[256];
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, NULL, 0); cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, loaderror, sizeof(loaderror));
if (!cupshandle) if (!cupshandle) {
return FALSE; TRACE("%s\n", loaderror);
TRACE("loaded %s\n", SONAME_LIBCUPS); return FALSE;
}
TRACE("%p: %s loaded\n", cupshandle, SONAME_LIBCUPS);
#define DYNCUPS(x) \ #define DYNCUPS(x) \
p##x = wine_dlsym(cupshandle, #x, NULL,0); \ p##x = wine_dlsym(cupshandle, #x, NULL,0); \