Michael Stefaniuc : inetcomm: Pass the object instead of an iface to a helper function.
Alexandre Julliard
julliard at winehq.org
Mon Mar 4 13:23:38 CST 2013
Module: wine
Branch: master
Commit: d50b3b20682822d61a4605398723648b92fb0c64
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d50b3b20682822d61a4605398723648b92fb0c64
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Mar 4 00:29:53 2013 +0100
inetcomm: Pass the object instead of an iface to a helper function.
---
dlls/inetcomm/mimeole.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 3e23fc0..d897d38 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -1996,9 +1996,8 @@ static HRESULT WINAPI MimeMessage_CountBodies(IMimeMessage *iface, HBODY hParent
return S_OK;
}
-static HRESULT find_next(IMimeMessage *msg, body_t *body, LPFINDBODY find, HBODY *out)
+static HRESULT find_next(MimeMessage *This, body_t *body, FINDBODY *find, HBODY *out)
{
- MimeMessage *This = (MimeMessage *)msg;
struct list *ptr;
HBODY next;
@@ -2027,15 +2026,14 @@ static HRESULT find_next(IMimeMessage *msg, body_t *body, LPFINDBODY find, HBODY
return MIME_E_NOT_FOUND;
}
-static HRESULT WINAPI MimeMessage_FindFirst(
- IMimeMessage *iface,
- LPFINDBODY pFindBody,
- LPHBODY phBody)
+static HRESULT WINAPI MimeMessage_FindFirst(IMimeMessage *iface, FINDBODY *pFindBody, HBODY *phBody)
{
+ MimeMessage *This = impl_from_IMimeMessage(iface);
+
TRACE("(%p)->(%p, %p)\n", iface, pFindBody, phBody);
pFindBody->dwReserved = 0;
- return find_next( iface, NULL, pFindBody, phBody );
+ return find_next(This, NULL, pFindBody, phBody);
}
static HRESULT WINAPI MimeMessage_FindNext(IMimeMessage *iface, FINDBODY *pFindBody, HBODY *phBody)
@@ -2048,7 +2046,7 @@ static HRESULT WINAPI MimeMessage_FindNext(IMimeMessage *iface, FINDBODY *pFindB
hr = find_body( &This->body_tree, UlongToHandle( pFindBody->dwReserved ), &body );
if (hr != S_OK) return MIME_E_NOT_FOUND;
- return find_next( iface, body, pFindBody, phBody );
+ return find_next(This, body, pFindBody, phBody);
}
static HRESULT WINAPI MimeMessage_ResolveURL(
More information about the wine-cvs
mailing list