Michael Stefaniuc : msctf: Get rid of a cast from a COM object to an iface.

Alexandre Julliard julliard at winehq.org
Mon Jul 4 09:54:40 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jul  1 10:29:56 2016 +0200

msctf: Get rid of a cast from a COM object to an iface.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msctf/threadmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c
index e645619..528414f 100644
--- a/dlls/msctf/threadmgr.c
+++ b/dlls/msctf/threadmgr.c
@@ -1488,8 +1488,8 @@ static HRESULT EnumTfDocumentMgr_Constructor(struct list* head, IEnumTfDocumentM
     This->head = head;
     This->index = list_head(This->head);
 
-    TRACE("returning %p\n", This);
-    *ppOut = (IEnumTfDocumentMgrs*)This;
+    TRACE("returning %p\n", &This->IEnumTfDocumentMgrs_iface);
+    *ppOut = &This->IEnumTfDocumentMgrs_iface;
     return S_OK;
 }
 




More information about the wine-cvs mailing list