Detlef Riekenberg : winspool:
Add a TRACE when wine_dlopen for SONAME_LIBCUPS failed.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 30 16:52:35 CDT 2007
Module: wine
Branch: master
Commit: f976fc8eadf140719559f8fb248789c98b430e7c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f976fc8eadf140719559f8fb248789c98b430e7c
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Mon Jul 30 19:41:03 2007 +0200
winspool: Add a TRACE when wine_dlopen for SONAME_LIBCUPS failed.
---
dlls/winspool.drv/info.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 2d892a3..7ac322d 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -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); \
More information about the wine-cvs
mailing list