gdi32: Improve the fontconfig filtering hack so that Mac suitcase fonts get through.

Huw Davies huw at codeweavers.com
Wed Dec 20 11:59:26 CST 2006


On Wed, Dec 20, 2006 at 06:37:22PM +0100, Paul Vriens wrote:
> On Tue, 2006-12-19 at 21:21 +0000, Huw Davies wrote:
> > +        if(strcasecmp(ext, "pfa") && strcasecmp(ext, "pfb"))
> >              AddFontFileToList(file, NULL, ADDFONT_EXTERNAL_FONT); 
> Hi,
> 
> this patch was committed but I don't think this 'if' statement is
> correct as it will never be entered.

Sure it will, if ext doesn't match "pfa" && ext doesn't match "pfb".
Note that strcasecmp probably doesn't return what you think it does.

Huw.
-- 
Huw Davies
huw at codeweavers.com



More information about the wine-devel mailing list