msctf: Remove superfluous pointer casts.

Michael Stefaniuc mstefani at redhat.de
Thu Mar 5 02:39:10 CST 2009


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

diff --git a/dlls/msctf/msctf.c b/dlls/msctf/msctf.c
index 1f5e35b..e77c749 100644
--- a/dlls/msctf/msctf.c
+++ b/dlls/msctf/msctf.c
@@ -148,7 +148,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
     This->vtbl = &ClassFactoryVtbl;
     This->ref = 1;
     This->ctor = ctor;
-    *ppvOut = (LPVOID)This;
+    *ppvOut = This;
     TRACE("Created class factory %p\n", This);
     MSCTF_refCount++;
     return S_OK;
@@ -217,7 +217,7 @@ HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim)
 HRESULT WINAPI TF_GetThreadMgr(ITfThreadMgr **pptim)
 {
     TRACE("\n");
-    *pptim = (ITfThreadMgr*)TlsGetValue(tlsIndex);
+    *pptim = TlsGetValue(tlsIndex);
 
     if (*pptim)
         ITfThreadMgr_AddRef(*pptim);
-- 
1.6.0.6



More information about the wine-patches mailing list