Huw Davies : inetcomm: Implement IMimeInternational_CanConvertCodePages.

Alexandre Julliard julliard at winehq.org
Thu Sep 11 08:01:23 CDT 2008


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Sep 11 10:42:25 2008 +0100

inetcomm: Implement IMimeInternational_CanConvertCodePages.

---

 dlls/inetcomm/mimeintl.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/dlls/inetcomm/mimeintl.c b/dlls/inetcomm/mimeintl.c
index 48848b8..92df2fb 100644
--- a/dlls/inetcomm/mimeintl.c
+++ b/dlls/inetcomm/mimeintl.c
@@ -311,8 +311,21 @@ static HRESULT WINAPI MimeInternat_GetCodePageInfo(IMimeInternational *iface, CO
 static HRESULT WINAPI MimeInternat_CanConvertCodePages(IMimeInternational *iface, CODEPAGEID cpiSource,
                                                        CODEPAGEID cpiDest)
 {
-    FIXME("stub\n");
-    return E_NOTIMPL;
+    HRESULT hr;
+    IMultiLanguage *ml;
+
+    TRACE("(%p)->(%d, %d)\n", iface, cpiSource, cpiDest);
+
+    /* Could call mlang.IsConvertINetStringAvailable() to avoid the COM overhead if need be. */
+
+    hr = get_mlang(&ml);
+    if(SUCCEEDED(hr))
+    {
+        hr = IMultiLanguage_IsConvertible(ml, cpiSource, cpiDest);
+        IMultiLanguage_Release(ml);
+    }
+
+    return hr;
 }
 
 static HRESULT WINAPI MimeInternat_DecodeHeader(IMimeInternational *iface, HCHARSET hCharset,




More information about the wine-cvs mailing list