From 1f56ce42e32b780e3a4a83a336d8b757db6bbef7 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 18 Feb 2009 22:46:51 +0100 Subject: [PATCH] qcap: Remove superfluous pointer casts. --- dlls/qcap/capturegraph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/qcap/capturegraph.c b/dlls/qcap/capturegraph.c index b858762e5cc..7294d5d5a99 100644 --- a/dlls/qcap/capturegraph.c +++ b/dlls/qcap/capturegraph.c @@ -78,9 +78,9 @@ static inline CaptureGraphImpl *impl_from_ICaptureGraphBuilder2( ICaptureGraphBu /* converts This to an interface pointer */ -#define _IUnknown_(This) (IUnknown*)&(This->lpVtbl2) -#define _ICaptureGraphBuilder_(This) (ICaptureGraphBuilder*)&(This->lpVtbl) -#define _ICaptureGraphBuilder2_(This) (ICaptureGraphBuilder2*)&(This->lpVtbl2) +#define _IUnknown_(This) (&(This)->lpVtbl2) +#define _ICaptureGraphBuilder_(This) (&(This)->lpVtbl) +#define _ICaptureGraphBuilder2_(This) ((ICaptureGraphBuilder2*)&(This)->lpVtbl2) IUnknown * CALLBACK QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter,