inetcomm: Stub for MimeOleGetCharsetInfo.

This commit is contained in:
Huw Davies 2008-02-12 14:28:11 +00:00 committed by Alexandre Julliard
parent 43958866a3
commit b21b9c7372
3 changed files with 12 additions and 1 deletions

View file

@ -67,7 +67,7 @@
@ stub MimeOleGetBodyPropA
@ stub MimeOleGetBodyPropW
@ stub MimeOleGetCertsFromThumbprints
@ stub MimeOleGetCharsetInfo
@ stdcall MimeOleGetCharsetInfo(ptr ptr)
@ stub MimeOleGetCodePageCharset
@ stub MimeOleGetCodePageInfo
@ stub MimeOleGetContentTypeExt

View file

@ -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;
}

View file

@ -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);