Commit a9287e35 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

inetcomm: Forward a few IMimeMessage functions to the appropriate IMimeBody functions.

parent d56033ee
...@@ -2029,8 +2029,16 @@ static HRESULT WINAPI MimeMessage_IsBodyType( ...@@ -2029,8 +2029,16 @@ static HRESULT WINAPI MimeMessage_IsBodyType(
HBODY hBody, HBODY hBody,
IMSGBODYTYPE bodytype) IMSGBODYTYPE bodytype)
{ {
FIXME("(%p)->(%p, %d)\n", iface, hBody, bodytype); HRESULT hr;
return E_NOTIMPL; IMimeBody *mime_body;
TRACE("(%p)->(%p, %d)\n", iface, hBody, bodytype);
hr = IMimeMessage_BindToObject(iface, hBody, &IID_IMimeBody, (void**)&mime_body);
if(hr != S_OK) return hr;
hr = IMimeBody_IsType(mime_body, bodytype);
MimeBody_Release(mime_body);
return hr;
} }
static HRESULT WINAPI MimeMessage_IsContentType( static HRESULT WINAPI MimeMessage_IsContentType(
...@@ -2039,8 +2047,16 @@ static HRESULT WINAPI MimeMessage_IsContentType( ...@@ -2039,8 +2047,16 @@ static HRESULT WINAPI MimeMessage_IsContentType(
LPCSTR pszPriType, LPCSTR pszPriType,
LPCSTR pszSubType) LPCSTR pszSubType)
{ {
FIXME("(%p)->(%p, %s, %s)\n", iface, hBody, pszPriType, pszSubType); HRESULT hr;
return E_NOTIMPL; IMimeBody *mime_body;
TRACE("(%p)->(%p, %s, %s)\n", iface, hBody, pszPriType, pszSubType);
hr = IMimeMessage_BindToObject(iface, hBody, &IID_IMimeBody, (void**)&mime_body);
if(FAILED(hr)) return hr;
hr = IMimeBody_IsContentType(mime_body, pszPriType, pszSubType);
IMimeBody_Release(mime_body);
return hr;
} }
static HRESULT WINAPI MimeMessage_QueryBodyProp( static HRESULT WINAPI MimeMessage_QueryBodyProp(
...@@ -2062,8 +2078,18 @@ static HRESULT WINAPI MimeMessage_GetBodyProp( ...@@ -2062,8 +2078,18 @@ static HRESULT WINAPI MimeMessage_GetBodyProp(
DWORD dwFlags, DWORD dwFlags,
LPPROPVARIANT pValue) LPPROPVARIANT pValue)
{ {
FIXME("(%p)->(%p, %s, 0x%x, %p)\n", iface, hBody, pszName, dwFlags, pValue); HRESULT hr;
return E_NOTIMPL; IMimeBody *mime_body;
TRACE("(%p)->(%p, %s, 0x%x, %p)\n", iface, hBody, pszName, dwFlags, pValue);
hr = IMimeMessage_BindToObject(iface, hBody, &IID_IMimeBody, (void**)&mime_body);
if(hr != S_OK) return hr;
hr = IMimeBody_GetProp(mime_body, pszName, dwFlags, pValue);
IMimeBody_Release(mime_body);
return hr;
} }
static HRESULT WINAPI MimeMessage_SetBodyProp( static HRESULT WINAPI MimeMessage_SetBodyProp(
......
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