From c65325c584a5cecec49721ba7e0f643075bc6321 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 1 Jul 2016 10:29:06 +0200 Subject: [PATCH] msimtf: Get rid of a cast from a COM object to an iface. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/msimtf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msimtf/main.c b/dlls/msimtf/main.c index daae81757da..78c26cb10ee 100644 --- a/dlls/msimtf/main.c +++ b/dlls/msimtf/main.c @@ -141,7 +141,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ActiveIMMApp_Constructor, }; - return IClassFactory_QueryInterface((IClassFactory*)&cf, riid, ppv); + return IClassFactory_QueryInterface(&cf.IClassFactory_iface, riid, ppv); } FIXME("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);