Huw Davies : inetcomm: Start of IMimeMessage_SetOption.
Alexandre Julliard
julliard at winehq.org
Mon Sep 22 07:04:54 CDT 2008
Module: wine
Branch: master
Commit: 1b8e99f514c4b5837ebb7a9d58603c9a56a9561c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b8e99f514c4b5837ebb7a9d58603c9a56a9561c
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Sep 22 10:47:38 2008 +0100
inetcomm: Start of IMimeMessage_SetOption.
---
dlls/inetcomm/mimeole.c | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 617286c..ebeab10 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -2172,8 +2172,30 @@ static HRESULT WINAPI MimeMessage_SetOption(
const TYPEDID oid,
LPCPROPVARIANT pValue)
{
- FIXME("(%p)->(%08x, %p)\n", iface, oid, pValue);
- return E_NOTIMPL;
+ HRESULT hr = E_NOTIMPL;
+ TRACE("(%p)->(%08x, %p)\n", iface, oid, pValue);
+
+ if(pValue->vt != TYPEDID_TYPE(oid))
+ {
+ WARN("Called with vartype %04x and oid %08x\n", pValue->vt, oid);
+ return E_INVALIDARG;
+ }
+
+ switch(oid)
+ {
+ case OID_HIDE_TNEF_ATTACHMENTS:
+ FIXME("OID_HIDE_TNEF_ATTACHMENTS (value %d): ignoring\n", pValue->u.boolVal);
+ hr = S_OK;
+ break;
+ case OID_SHOW_MACBINARY:
+ FIXME("OID_SHOW_MACBINARY (value %d): ignoring\n", pValue->u.boolVal);
+ hr = S_OK;
+ break;
+ default:
+ FIXME("Unhandled oid %08x\n", oid);
+ }
+
+ return hr;
}
static HRESULT WINAPI MimeMessage_GetOption(
More information about the wine-cvs
mailing list