Huw Davies : inetcomm: Stub for MimeOleGetCharsetInfo.
Alexandre Julliard
julliard at winehq.org
Wed Feb 13 10:40:07 CST 2008
Module: wine
Branch: master
Commit: b21b9c73723f14ae82e6ffc5e2f38f207ecf215c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b21b9c73723f14ae82e6ffc5e2f38f207ecf215c
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Feb 12 14:28:11 2008 +0000
inetcomm: Stub for MimeOleGetCharsetInfo.
---
dlls/inetcomm/inetcomm.spec | 2 +-
dlls/inetcomm/mimeole.c | 7 +++++++
dlls/inetcomm/tests/mimeole.c | 4 ++++
3 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/inetcomm/inetcomm.spec b/dlls/inetcomm/inetcomm.spec
index 0266bb1..36a5d8b 100644
--- a/dlls/inetcomm/inetcomm.spec
+++ b/dlls/inetcomm/inetcomm.spec
@@ -67,7 +67,7 @@
@ stub MimeOleGetBodyPropA
@ stub MimeOleGetBodyPropW
@ stub MimeOleGetCertsFromThumbprints
-@ stub MimeOleGetCharsetInfo
+@ stdcall MimeOleGetCharsetInfo(ptr ptr)
@ stub MimeOleGetCodePageCharset
@ stub MimeOleGetCodePageInfo
@ stub MimeOleGetContentTypeExt
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 98f04c8..b67a898 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -2888,3 +2888,10 @@ HRESULT WINAPI MimeOleGetAllocator(IMimeAllocator **alloc)
{
return MimeAllocator_create(NULL, (void**)alloc);
}
+
+HRESULT WINAPI MimeOleGetCharsetInfo(HCHARSET hCharset, LPINETCSETINFO pCsetInfo)
+{
+ FIXME("(%p, %p)\n", hCharset, pCsetInfo);
+ if(!hCharset) return E_INVALIDARG;
+ return E_FAIL;
+}
diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c
index 1c82a2a..d286b74 100644
--- a/dlls/inetcomm/tests/mimeole.c
+++ b/dlls/inetcomm/tests/mimeole.c
@@ -216,6 +216,8 @@ static void test_CreateMessage(void)
ULONG count;
FINDBODY find_struct;
HCHARSET hcs;
+ INETCSETINFO csi;
+
char text[] = "text";
HBODY *body_list;
PROPVARIANT prop;
@@ -308,6 +310,8 @@ static void test_CreateMessage(void)
hr = IMimeMessage_GetCharset(body, &hcs);
ok(hr == S_OK, "ret %08x\n", hr);
ok(hcs == NULL, "ret %p\n", hcs);
+ hr = MimeOleGetCharsetInfo(hcs, &csi);
+ ok(hr == E_INVALIDARG, "ret %08x\n", hr);
IMimeMessage_Release(msg);
More information about the wine-cvs
mailing list