PSDRV ppd.c fix for manual feed

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

 



ppd.c was using NULL for the (short) input slot name in the code that created 
*InputSlot workaround (M$ feature) for manual feed paper handling.  However, 
this caused strlen() to crash when the *InputSlot was sent to the spooling 
system (strlen() doesn't like NULL, I guess).  This patch sets the name to 
"Manual Feed".

(Found while testing Quicken 2000 deluxe [print sample check alignment page].)

Carl
Index: ppd.c
===================================================================
RCS file: /home/wine/wine/dlls/wineps/ppd.c,v
retrieving revision 1.9
diff -u -r1.9 ppd.c
--- ppd.c	24 Jun 2002 23:44:18 -0000	1.9
+++ ppd.c	10 Jul 2002 14:41:13 -0000
@@ -774,7 +774,10 @@
 		!strcmp ("True", tuple.option))
 	{
 	    /* FIXME - should check for failure */
-	    PSDRV_AddSlot(ppd, NULL, "Manual Feed", tuple.value, DMBIN_MANUAL);
+	    /* 2002/07/10 - Name field needs to be not NULL for this to work when being
+	     * sent to the spooler... */
+	    /* was: PSDRV_AddSlot(ppd, NULL, "Manual Feed", tuple.value, DMBIN_MANUAL); */
+	    PSDRV_AddSlot(ppd, "Manual Feed", "Manual Feed", tuple.value, DMBIN_MANUAL);
 	    tuple.value = NULL;
 	}
 

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

  Powered by Linux