mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
mlang: Add implementation of fnIMLangFontLink_GetCharCodePages.
This commit is contained in:
parent
c685548056
commit
4398c51f1e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user