Nikolay Sivov : msctf: Return proper pointer to interface.

Alexandre Julliard julliard at winehq.org
Mon Feb 6 16:31:18 CST 2017


Module: wine
Branch: master
Commit: 7bcca927bc2d47fc9e6aec83221c996fb46cc89d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7bcca927bc2d47fc9e6aec83221c996fb46cc89d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Feb  5 17:20:35 2017 +0300

msctf: Return proper pointer to interface.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 }




More information about the wine-cvs mailing list