Michael Stefaniuc : atl: Remove superfluous pointer casts.
Alexandre Julliard
julliard at winehq.org
Thu Feb 12 11:14:47 CST 2009
Module: wine
Branch: master
Commit: 17ca7aa5a676b6fad9e60ff0c46469fb93e418e7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17ca7aa5a676b6fad9e60ff0c46469fb93e418e7
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Feb 12 11:34:16 2009 +0100
atl: Remove superfluous pointer casts.
---
dlls/atl/atl_ax.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index c98cba7..da595a4 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -126,11 +126,11 @@ static ULONG IOCS_AddRef(IOCS *This)
return ref;
}
-#define THIS2IOLECLIENTSITE(This) ((IOleClientSite*)&This->lpOleClientSiteVtbl)
-#define THIS2IOLECONTAINER(This) ((IOleContainer*)&This->lpOleContainerVtbl)
-#define THIS2IOLEINPLACESITEWINDOWLESS(This) ((IOleInPlaceSiteWindowless*)&This->lpOleInPlaceSiteWindowlessVtbl)
-#define THIS2IOLEINPLACEFRAME(This) ((IOleInPlaceFrame*)&This->lpOleInPlaceFrameVtbl)
-#define THIS2IOLECONTROLSITE(This) ((IOleControlSite*)&This->lpOleControlSiteVtbl)
+#define THIS2IOLECLIENTSITE(This) ((IOleClientSite*)&(This)->lpOleClientSiteVtbl)
+#define THIS2IOLECONTAINER(This) (&(This)->lpOleContainerVtbl)
+#define THIS2IOLEINPLACESITEWINDOWLESS(This) (&(This)->lpOleInPlaceSiteWindowlessVtbl)
+#define THIS2IOLEINPLACEFRAME(This) (&(This)->lpOleInPlaceFrameVtbl)
+#define THIS2IOLECONTROLSITE(This) (&(This)->lpOleControlSiteVtbl)
static HRESULT IOCS_QueryInterface(IOCS *This, REFIID riid, void **ppv)
{
More information about the wine-cvs
mailing list