Aric Stewart : mlang: Basic implementation of fnIMultiLanguage2_GetCodePageDescription.
Alexandre Julliard
julliard at winehq.org
Thu Jul 17 06:38:19 CDT 2008
Module: wine
Branch: master
Commit: 36a1ee762fda3065b72a2c48688cf29e363898cf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=36a1ee762fda3065b72a2c48688cf29e363898cf
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Jul 15 16:57:46 2008 +0900
mlang: Basic implementation of fnIMultiLanguage2_GetCodePageDescription.
---
dlls/mlang/mlang.c | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c
index 14f881e..8bc11b5 100644
--- a/dlls/mlang/mlang.c
+++ b/dlls/mlang/mlang.c
@@ -2423,8 +2423,25 @@ static HRESULT WINAPI fnIMultiLanguage2_GetCodePageDescription(
LPWSTR lpWideCharStr,
int cchWideChar)
{
- FIXME("%u, %04x, %p, %d\n", uiCodePage, lcid, lpWideCharStr, cchWideChar);
- return E_NOTIMPL;
+ /* Find first instance */
+ unsigned int i,n;
+
+ TRACE ("%u, %04x, %p, %d\n", uiCodePage, lcid, lpWideCharStr, cchWideChar);
+ for (i = 0; i < sizeof(mlang_data)/sizeof(mlang_data[0]); i++)
+ {
+ for (n = 0; n < mlang_data[i].number_of_cp; n++)
+ {
+ if (mlang_data[i].mime_cp_info[n].cp == uiCodePage)
+ {
+ MultiByteToWideChar(CP_ACP, 0,
+ mlang_data[i].mime_cp_info[n].description,
+ -1, lpWideCharStr, cchWideChar);
+ return S_OK;
+ }
+ }
+ }
+
+ return S_FALSE;
}
static HRESULT WINAPI fnIMultiLanguage2_IsCodePageInstallable(
More information about the wine-cvs
mailing list