gdi32: Make GetKerningPairsA not fail for fonts with SYMBOL charset.

This commit is contained in:
Dmitry Timoshkov 2007-04-01 20:17:33 +09:00 committed by Alexandre Julliard
parent bae3dc49cc
commit bc4bbb40d1
1 changed files with 5 additions and 1 deletions

View File

@ -2662,7 +2662,11 @@ DWORD WINAPI GetKerningPairsA( HDC hDC, DWORD cPairs,
FIXME("Can't find codepage for charset %d\n", charset); FIXME("Can't find codepage for charset %d\n", charset);
return 0; return 0;
} }
if (!GetCPInfo(csi.ciACP, &cpi)) /* GetCPInfo() will fail on CP_SYMBOL, and WideCharToMultiByte is supposed
* to fail on an invalid character for CP_SYMBOL.
*/
cpi.DefaultChar[0] = 0;
if (csi.ciACP != CP_SYMBOL && !GetCPInfo(csi.ciACP, &cpi))
{ {
FIXME("Can't find codepage %u info\n", csi.ciACP); FIXME("Can't find codepage %u info\n", csi.ciACP);
return 0; return 0;