Commit fe6367ae authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

inetcomm: Implemented IMimeBody::GetClassID().

parent 55570819
...@@ -971,10 +971,15 @@ static HRESULT WINAPI MimeBody_GetClassID( ...@@ -971,10 +971,15 @@ static HRESULT WINAPI MimeBody_GetClassID(
CLSID* pClassID) CLSID* pClassID)
{ {
MimeBody *This = impl_from_IMimeBody(iface); MimeBody *This = impl_from_IMimeBody(iface);
FIXME("(%p)->(%p) stub\n", This, pClassID);
return E_NOTIMPL;
}
TRACE("(%p)->(%p)\n", This, pClassID);
if(!pClassID)
return E_INVALIDARG;
*pClassID = IID_IMimeBody;
return S_OK;
}
static HRESULT WINAPI MimeBody_IsDirty( static HRESULT WINAPI MimeBody_IsDirty(
IMimeBody* iface) IMimeBody* iface)
......
...@@ -197,10 +197,18 @@ static void test_CreateBody(void) ...@@ -197,10 +197,18 @@ static void test_CreateBody(void)
MIMEPARAMINFO *param_info; MIMEPARAMINFO *param_info;
IMimeAllocator *alloc; IMimeAllocator *alloc;
BODYOFFSETS offsets; BODYOFFSETS offsets;
CLSID clsid;
hr = CoCreateInstance(&CLSID_IMimeBody, NULL, CLSCTX_INPROC_SERVER, &IID_IMimeBody, (void**)&body); hr = CoCreateInstance(&CLSID_IMimeBody, NULL, CLSCTX_INPROC_SERVER, &IID_IMimeBody, (void**)&body);
ok(hr == S_OK, "ret %08x\n", hr); ok(hr == S_OK, "ret %08x\n", hr);
hr = IMimeBody_GetClassID(body, NULL);
ok(hr == E_INVALIDARG, "ret %08x\n", hr);
hr = IMimeBody_GetClassID(body, &clsid);
ok(hr == S_OK, "ret %08x\n", hr);
ok(IsEqualGUID(&clsid, &IID_IMimeBody), "got %s\n", wine_dbgstr_guid(&clsid));
hr = IMimeBody_GetHandle(body, &handle); hr = IMimeBody_GetHandle(body, &handle);
ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr); ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr);
ok(handle == NULL, "handle %p\n", handle); ok(handle == NULL, "handle %p\n", handle);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment