Module: wine Branch: master Commit: ed39ba45394b9f1df5e3b7216b8d5b23fdf1737f URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed39ba45394b9f1df5e3b7216b...
Author: Huw Davies huw@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)