[PATCH] msctf: Return proper pointer to interface

Nikolay Sivov nsivov at codeweavers.com
Fri Dec 9 23:54:52 CST 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/msctf/msctf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msctf/msctf.c b/dlls/msctf/msctf.c
index 1982e2c..a19eaa1 100644
--- a/dlls/msctf/msctf.c
+++ b/dlls/msctf/msctf.c
@@ -180,7 +180,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
     This->IClassFactory_iface.lpVtbl = &ClassFactoryVtbl;
     This->ref = 1;
     This->ctor = ctor;
-    *ppvOut = This;
+    *ppvOut = &This->IClassFactory_iface;
     TRACE("Created class factory %p\n", This);
     return S_OK;
 }
-- 
2.10.2




More information about the wine-patches mailing list