wineps.drv: return error if unable to select a builtin font

Alexandre Julliard julliard at winehq.org
Thu Dec 2 11:59:54 CST 2010


Aric Stewart <aric at codeweavers.com> writes:

> @@ -191,6 +191,12 @@ BOOL PSDRV_SelectBuiltinFont(PSDRV_PDEVICE *physDev, HFONT hfont,
>      if(!family)
>          family = physDev->pi->Fonts;
>  
> +    if (!family)
> +    {
> +        ERR("Unable to get any font for printer\n");
> +        return FALSE;
> +    }

If this is something that can legitimately happen it should be handled
correctly.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list