qcap: Remove superfluous pointer casts.
Michael Stefaniuc
mstefani at redhat.de
Wed Feb 18 15:46:51 CST 2009
---
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,
--
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090218/2e8c3a0b/attachment.pgp
More information about the wine-patches
mailing list