Jacek Caban : ole32: Fixed parameter checking and improved debug traces in IBindCtx:: QueryInterface.

Alexandre Julliard julliard at winehq.org
Mon Dec 31 12:32:22 CST 2007


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Dec 30 17:44:32 2007 +0100

ole32: Fixed parameter checking and improved debug traces in IBindCtx::QueryInterface.

---

 dlls/ole32/bindctx.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ole32/bindctx.c b/dlls/ole32/bindctx.c
index da68f33..e0f297e 100644
--- a/dlls/ole32/bindctx.c
+++ b/dlls/ole32/bindctx.c
@@ -74,11 +74,11 @@ BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppvObject)
 {
     BindCtxImpl *This = (BindCtxImpl *)iface;
 
-    TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
+    TRACE("(%p %s %p)\n",This, debugstr_guid(riid), ppvObject);
 
     /* Perform a sanity check on the parameters.*/
-    if ( (This==0) || (ppvObject==0) )
-        return E_INVALIDARG;
+    if (!ppvObject)
+        return E_POINTER;
 
     /* Initialize the return parameter.*/
     *ppvObject = 0;




More information about the wine-cvs mailing list