Nikolay Sivov : ole32: Remove a couple of interface casts.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 6 10:34:18 CDT 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Apr  4 14:37:07 2015 +0300

ole32: Remove a couple of interface casts.

---

 dlls/ole32/compobj.c        | 4 ++--
 dlls/ole32/defaulthandler.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index d842aaf..762f011 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -4952,8 +4952,8 @@ HRESULT WINAPI CoGetObjectContext(REFIID riid, void **ppv)
     else
         context->apttype = APTTYPE_STA;
 
-    hr = IUnknown_QueryInterface((IUnknown *)&context->IComThreadingInfo_iface, riid, ppv);
-    IUnknown_Release((IUnknown *)&context->IComThreadingInfo_iface);
+    hr = IComThreadingInfo_QueryInterface(&context->IComThreadingInfo_iface, riid, ppv);
+    IComThreadingInfo_Release(&context->IComThreadingInfo_iface);
 
     return hr;
 }
diff --git a/dlls/ole32/defaulthandler.c b/dlls/ole32/defaulthandler.c
index 5e89977..913d4af 100644
--- a/dlls/ole32/defaulthandler.c
+++ b/dlls/ole32/defaulthandler.c
@@ -2185,7 +2185,7 @@ HRESULT HandlerCF_Create(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
     This->refs = 0;
     This->clsid = *rclsid;
 
-    hr = IUnknown_QueryInterface((IUnknown *)&This->IClassFactory_iface, riid, ppv);
+    hr = IClassFactory_QueryInterface(&This->IClassFactory_iface, riid, ppv);
     if (FAILED(hr))
         HeapFree(GetProcessHeap(), 0, This);
 




More information about the wine-cvs mailing list