ole32/tests: Avoid a cast from COM object to interface.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-05-29 22:47:27 +02:00 committed by Alexandre Julliard
parent 32582a780e
commit a2d26ae822
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ static void ole_server(void)
if (hr == S_OK)
{
trace("server: registering class object\n");
hr = CoRegisterClassObject(&CLSID_WineTestObject, (IUnknown *)&factory,
hr = CoRegisterClassObject(&CLSID_WineTestObject, (IUnknown *)&factory.IClassFactory_iface,
CLSCTX_SERVER, REGCLS_MULTIPLEUSE, &key);
if (hr == S_OK)
{