PATCH: cups without default

Marcus Meissner meissner at suse.de
Wed Sep 11 07:04:41 CDT 2002


Hi,

Newer versions of cups libraries apparently use "none" instead of NULL
as return for a not-set default printer.

Ciao, Marcus

License: LGPL
Changelog:
	New CUPS libraries return "none" as default printer instead of NULL.

Index: info.c
===================================================================
RCS file: /home/wine/wine/dlls/winspool/info.c,v
retrieving revision 1.57
diff -u -r1.57 info.c
--- info.c	9 Sep 2002 19:19:18 -0000	1.57
+++ info.c	11 Sep 2002 12:03:51 -0000
@@ -125,6 +125,9 @@
 
     nrofdests = cupsGetPrinters(&printers);
 
+    if (def && !strcmp(def,"none")) /* CUPS has "none" for no default printer */
+    	def = NULL;
+
     for (i=0;i<nrofdests;i++) {
 	const char *ppd = cupsGetPPD(printers[i]);
 	char	*port,*devline;



More information about the wine-patches mailing list