winspool.drv: Fallback to cupsGetPPD if cupsGetPPD3 is missing or failed.

Dmitry Timoshkov dmitry at baikal.ru
Mon Feb 11 04:12:57 CST 2013


Huw Davies <huw at codeweavers.com> wrote:

> On Mon, Feb 11, 2013 at 02:03:26PM +0800, Dmitry Timoshkov wrote:
> > -    if (pcupsGetPPD3) return pcupsGetPPD3( http, name, modtime, buffer, bufsize );
> > +    if (pcupsGetPPD3)
> > +    {
> > +        http_status_t status;
> > +
> > +        TRACE( "Calling cupsGetPPD3\n" );
> > +        status = pcupsGetPPD3( http, name, modtime, buffer, bufsize );
> > +        if (status == HTTP_OK) return HTTP_OK;
> > +        TRACE("cupsGetPPD3 failed (status %d)\n", status);
> > +    }
> >  
> 
> Under what conditions does cupsGetPPD succeed if cupsGetPPD3 fails?

I don't have full understanding of what is going on, but sometimes (!)
cupsGetPPD3 returns 404, while cupsGetPPD works just fine here. Perhaps
that's just another Ubuntu quirk.

-- 
Dmitry.



More information about the wine-devel mailing list