dlls/gdi: fix GetGlyphOutline(resend)

Alexandre Julliard julliard at winehq.org
Mon Feb 21 12:57:18 CST 2005


TANABE Hiroshi <hirokun_dayomon at infoseek.to> writes:

>      if(!(fuFormat & GGO_GLYPH_INDEX)) {
> -        p = FONT_mbtowc(hdc, (char*)&uChar, 1, NULL, NULL);
> +        int len;
> +        if(uChar > 0xff) { /* but, 2 bytes charactor only */
> +            len = 2;
> +            uChar = (uChar & 0xff) << 8 | (uChar & 0xff00) >> 8;
> +        } else
> +            len = 1;
> +        p = FONT_mbtowc(hdc, (char*)&uChar, len, NULL, NULL);

You should use an array of two chars here.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list