PATCH: cups without default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux