Nikolay Sivov : mlang: Implement get source/ dest codepages for IMLangConvertCharset.

Alexandre Julliard julliard at winehq.org
Mon Sep 24 16:04:26 CDT 2012


Module: wine
Branch: master
Commit: 031f3ca16714b78e7586efdd92890f8f5cc2bf2d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=031f3ca16714b78e7586efdd92890f8f5cc2bf2d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Sep 24 12:06:28 2012 +0400

mlang: Implement get source/dest codepages for IMLangConvertCharset.

---

 dlls/mlang/mlang.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c
index 388b99c..caae2c2 100644
--- a/dlls/mlang/mlang.c
+++ b/dlls/mlang/mlang.c
@@ -3632,15 +3632,21 @@ static HRESULT WINAPI MLangConvertCharset_Initialize(IMLangConvertCharset *iface
 static HRESULT WINAPI MLangConvertCharset_GetSourceCodePage(IMLangConvertCharset *iface, UINT *src_cp)
 {
     struct convert_charset *This = impl_from_IMLangConvertCharset(iface);
-    FIXME("(%p)->(%p): stub\n", This, src_cp);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%p)\n", This, src_cp);
+
+    *src_cp = This->src_cp;
+    return S_OK;
 }
 
 static HRESULT WINAPI MLangConvertCharset_GetDestinationCodePage(IMLangConvertCharset *iface, UINT *dst_cp)
 {
     struct convert_charset *This = impl_from_IMLangConvertCharset(iface);
-    FIXME("(%p)->(%p): stub\n", This, dst_cp);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%p)\n", This, dst_cp);
+
+    *dst_cp = This->dst_cp;
+    return S_OK;
 }
 
 static HRESULT WINAPI MLangConvertCharset_GetProperty(IMLangConvertCharset *iface, DWORD *prop)




More information about the wine-cvs mailing list