inetcomm: Stub IMime{Message, Body}_GetCharset to return a NULL charset.

This commit is contained in:
Huw Davies 2008-02-12 14:20:37 +00:00 committed by Alexandre Julliard
parent 3f92c5b734
commit 43958866a3
2 changed files with 14 additions and 2 deletions

View File

@ -715,7 +715,8 @@ static HRESULT WINAPI MimeBody_GetCharset(
LPHCHARSET phCharset)
{
FIXME("stub\n");
return E_NOTIMPL;
*phCharset = NULL;
return S_OK;
}
static HRESULT WINAPI MimeBody_SetCharset(
@ -2023,7 +2024,8 @@ static HRESULT WINAPI MimeMessage_GetCharset(
LPHCHARSET phCharset)
{
FIXME("(%p)->(%p)\n", iface, phCharset);
return E_NOTIMPL;
*phCharset = NULL;
return S_OK;
}
static HRESULT WINAPI MimeMessage_SetCharset(

View File

@ -215,6 +215,7 @@ static void test_CreateMessage(void)
BODYOFFSETS offsets;
ULONG count;
FINDBODY find_struct;
HCHARSET hcs;
char text[] = "text";
HBODY *body_list;
PROPVARIANT prop;
@ -268,6 +269,11 @@ static void test_CreateMessage(void)
ok(offsets.cbHeaderStart == 428, "got %d\n", offsets.cbHeaderStart);
ok(offsets.cbBodyStart == 518, "got %d\n", offsets.cbBodyStart);
ok(offsets.cbBodyEnd == 523, "got %d\n", offsets.cbBodyEnd);
hr = IMimeBody_GetCharset(body, &hcs);
ok(hr == S_OK, "ret %08x\n", hr);
ok(hcs == NULL, "ret %p\n", hcs);
IMimeBody_Release(body);
hr = IMimeMessage_GetBody(msg, IBL_NEXT, hbody, &hbody);
@ -299,6 +305,10 @@ static void test_CreateMessage(void)
ok(count == 2, "got %d\n", count);
CoTaskMemFree(body_list);
hr = IMimeMessage_GetCharset(body, &hcs);
ok(hr == S_OK, "ret %08x\n", hr);
ok(hcs == NULL, "ret %p\n", hcs);
IMimeMessage_Release(msg);
ref = IStream_AddRef(stream);