From b21b9c73723f14ae82e6ffc5e2f38f207ecf215c Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 12 Feb 2008 14:28:11 +0000 Subject: [PATCH] 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 deletion(-) diff --git a/dlls/inetcomm/inetcomm.spec b/dlls/inetcomm/inetcomm.spec index 0266bb1671c..36a5d8bd52f 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 98f04c8c09a..b67a8981aba 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 1c82a2aa5fe..d286b749f52 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);