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

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-01 10:28:45 +02:00 committed by Alexandre Julliard
parent 14d3dfde67
commit c9acabe1dd
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ static IDispatchEx *dispex_create(void)
if (!This) return NULL; if (!This) return NULL;
This->IDispatchEx_iface.lpVtbl = &dispex_vtable; This->IDispatchEx_iface.lpVtbl = &dispex_vtable;
This->refs = 1; This->refs = 1;
return (IDispatchEx *)This; return &This->IDispatchEx_iface;
} }
static void test_dispex(void) static void test_dispex(void)