gdi32/tests: Do not try to test OS/2 win metrics on non-windows fonts

Dmitry Timoshkov dmitry at baikal.ru
Tue May 28 19:23:01 CDT 2013


Aric Stewart <aric at codeweavers.com> wrote:

> +        ascent = GET_BE_WORD(tt_os2.usWinAscent);
> +        descent = GET_BE_WORD(tt_os2.usWinDescent);
> +        cell_height = ascent + descent;
> +        ok(ntm->ntmCellHeight == cell_height, "%s: ntmCellHeight %u != %u, os2.usWinAscent/os2.usWinDescent %u/%u\n",
> +           font_name, ntm->ntmCellHeight, cell_height, ascent, descent);
> +
> +        SetLastError(0xdeadbeef);

The SetLastError() call should be left at its previous position.

-- 
Dmitry.



More information about the wine-devel mailing list