patch for cups printers

Marcus Meissner marcus at jet.franken.de
Mon Apr 29 23:43:11 CDT 2002


> --- winehq/dlls/gdi/printdrv.c	Thu Mar 28 17:22:05 2002
> +++ wine/dlls/gdi/printdrv.c	Mon Apr 29 15:29:42 2002
> @@ -482,6 +482,8 @@
>  
>      if (!strncmp("LPR:",pszOutput,4))
>        sprintf(psCmd,"|lpr -P%s",pszOutput+4);
> +    if (!strncmp("CUPS:",pszOutput,4))
> +      sprintf(psCmd,"|lp -d%s",pszOutput+4);
>      else
>      {
>  	HKEY hkey;


This is wrong, the else { } is handled in the LPR: case too so you break
/etc/printcap based printing.

Ciao, Marcus



More information about the wine-devel mailing list