TANABE Hiroshi hirokun_dayomon@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.