winspool: Add a TRACE, when wine_dlopen for SONAME_LIBCUPS failed

Detlef Riekenberg wine.dev at web.de
Mon Jul 30 12:54:05 CDT 2007


Changelog:
 winspool: Add a TRACE, when wine_dlopen for SONAME_LIBCUPS failed

This should help to reduce the bug-reports for 64-Bit Systems, 
that have no 32-Bit CUPS installed.



-- 
 
By by ... Detlef

-------------- next part --------------
>From be74ec613d700eeac2235e113714a0f708f6bdc5 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Mon, 30 Jul 2007 19:41:03 +0200
Subject: [PATCH] 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);	\
-- 
1.4.1



More information about the wine-patches mailing list