Michael Stefaniuc : dispex/tests: Get rid of a cast from a COM object to an iface.

Alexandre Julliard julliard at winehq.org
Mon Jul 4 09:54:40 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jul  1 10:28:45 2016 +0200

dispex/tests: Get rid of a cast from a COM object to an iface.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dispex/tests/marshal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dispex/tests/marshal.c b/dlls/dispex/tests/marshal.c
index 0211cd7..c4917c6 100644
--- a/dlls/dispex/tests/marshal.c
+++ b/dlls/dispex/tests/marshal.c
@@ -356,7 +356,7 @@ static IDispatchEx *dispex_create(void)
     if (!This) return NULL;
     This->IDispatchEx_iface.lpVtbl = &dispex_vtable;
     This->refs = 1;
-    return (IDispatchEx *)This;
+    return &This->IDispatchEx_iface;
 }
 
 static void test_dispex(void)




More information about the wine-cvs mailing list