Commit 4398c51f authored by Vitaly Perov's avatar Vitaly Perov Committed by Alexandre Julliard

mlang: Add implementation of fnIMLangFontLink_GetCharCodePages.

parent c6855480
......@@ -1853,8 +1853,27 @@ static HRESULT WINAPI fnIMLangFontLink_GetCharCodePages(
WCHAR chSrc,
DWORD* pdwCodePages)
{
FIXME("\n");
return E_NOTIMPL;
int i;
CHAR buf;
BOOL used_dc;
DWORD codePages;
*pdwCodePages = 0;
for (i = 0; i < sizeof(mlang_data)/sizeof(mlang_data[0]); i++)
{
WideCharToMultiByte(mlang_data[i].family_codepage, WC_NO_BEST_FIT_CHARS,
&chSrc, 1, &buf, 1, NULL, &used_dc);
/* If default char is not used, current codepage include the given symbol */
if (!used_dc)
{
IMLangFontLink_CodePageToCodePages(iface,
mlang_data[i].family_codepage, &codePages);
*pdwCodePages |= codePages;
}
}
return S_OK;
}
static HRESULT WINAPI fnIMLangFontLink_GetStrCodePages(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment