ole32: Fixed parameter checking and improved debug traces in IBindCtx::QueryInterface.
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 *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;