Huw Davies : inetcomm: Forward a few IMimeMessage functions to the appropriate IMimeBody functions .
Alexandre Julliard
julliard at winehq.org
Wed Feb 13 10:40:06 CST 2008
Module: wine
Branch: master
Commit: a9287e3595a57988019373aadf5c069606fc42a5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9287e3595a57988019373aadf5c069606fc42a5
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Feb 12 12:27:05 2008 +0000
inetcomm: Forward a few IMimeMessage functions to the appropriate IMimeBody functions.
---
dlls/inetcomm/mimeole.c | 38 ++++++++++++++++++++++++++++++++------
1 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 6398f29..5628728 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -2029,8 +2029,16 @@ static HRESULT WINAPI MimeMessage_IsBodyType(
HBODY hBody,
IMSGBODYTYPE bodytype)
{
- FIXME("(%p)->(%p, %d)\n", iface, hBody, bodytype);
- return E_NOTIMPL;
+ HRESULT hr;
+ 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(
@@ -2039,8 +2047,16 @@ static HRESULT WINAPI MimeMessage_IsContentType(
LPCSTR pszPriType,
LPCSTR pszSubType)
{
- FIXME("(%p)->(%p, %s, %s)\n", iface, hBody, pszPriType, pszSubType);
- return E_NOTIMPL;
+ HRESULT hr;
+ 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(
@@ -2062,8 +2078,18 @@ static HRESULT WINAPI MimeMessage_GetBodyProp(
DWORD dwFlags,
LPPROPVARIANT pValue)
{
- FIXME("(%p)->(%p, %s, 0x%x, %p)\n", iface, hBody, pszName, dwFlags, pValue);
- return E_NOTIMPL;
+ HRESULT hr;
+ 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(
More information about the wine-cvs
mailing list