Huw Davies : inetcomm: Implement IMimeInternational_SetDefaultCharset.

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


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Sep 10 14:46:16 2008 +0100

inetcomm: Implement IMimeInternational_SetDefaultCharset.

---

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

diff --git a/dlls/inetcomm/mimeintl.c b/dlls/inetcomm/mimeintl.c
index f314740..666f33a 100644
--- a/dlls/inetcomm/mimeintl.c
+++ b/dlls/inetcomm/mimeintl.c
@@ -111,8 +111,16 @@ static ULONG WINAPI MimeInternat_Release( IMimeInternational *iface )
 
 static HRESULT WINAPI MimeInternat_SetDefaultCharset(IMimeInternational *iface, HCHARSET hCharset)
 {
-    FIXME("stub\n");
-    return E_NOTIMPL;
+    internat *This = impl_from_IMimeInternational( iface );
+
+    TRACE("(%p)->(%p)\n", iface, hCharset);
+
+    if(hCharset == NULL) return E_INVALIDARG;
+    /* FIXME check hCharset is valid */
+
+    InterlockedExchangePointer(&This->default_charset, hCharset);
+
+    return S_OK;
 }
 
 static HRESULT WINAPI MimeInternat_GetDefaultCharset(IMimeInternational *iface, LPHCHARSET phCharset)




More information about the wine-cvs mailing list