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

Michael Stefaniuc mstefani at redhat.de
Fri Jul 1 03:28:45 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 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)
-- 
2.5.5



More information about the wine-patches mailing list