wineps.drv: Fix bug using different enumeration value on user defined printer page sizes for printers using the same ppd.

Huw Davies huw at codeweavers.com
Tue Sep 23 04:28:51 CDT 2014


On Tue, Sep 23, 2014 at 11:09:39AM +0200, Ralf Habacker wrote:
> diff --git a/dlls/wineps.drv/ppd.c b/dlls/wineps.drv/ppd.c
> index 520355a..b440da0 100644
> --- a/dlls/wineps.drv/ppd.c
> +++ b/dlls/wineps.drv/ppd.c
> @@ -179,7 +179,6 @@ static const struct {
>    {NULL,                      0}
>  };
>  
> -static WORD UserPageType = DMPAPER_USER;
>  static WORD UserBinType = DMBIN_USER;
>  
>  /***********************************************************************
> @@ -695,6 +694,7 @@ PPD *PSDRV_ParsePPD( const WCHAR *fname, HANDLE printer )
>      char *def_pagesize_override = NULL, *def_duplex_override = NULL;
>      PAGESIZE *page, *page_cursor2;
>      struct map_context c;
> +    WORD UserPageType = DMPAPER_USER;
>  

Right, but you want to move UserBinType too.
Also, your commit message isn't great.

Huw.



More information about the wine-devel mailing list