Michael Stefaniuc : qcap: Remove superfluous pointer casts.

Alexandre Julliard julliard at winehq.org
Thu Feb 19 09:18:31 CST 2009


Module: wine
Branch: master
Commit: 1f56ce42e32b780e3a4a83a336d8b757db6bbef7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f56ce42e32b780e3a4a83a336d8b757db6bbef7

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Feb 18 22:46:51 2009 +0100

qcap: Remove superfluous pointer casts.

---

 dlls/qcap/capturegraph.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/qcap/capturegraph.c b/dlls/qcap/capturegraph.c
index b858762..7294d5d 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,




More information about the wine-cvs mailing list