Commit 2c6cbea0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent bc35dda7
...@@ -74,11 +74,11 @@ BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppvObject) ...@@ -74,11 +74,11 @@ BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppvObject)
{ {
BindCtxImpl *This = (BindCtxImpl *)iface; 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.*/ /* Perform a sanity check on the parameters.*/
if ( (This==0) || (ppvObject==0) ) if (!ppvObject)
return E_INVALIDARG; return E_POINTER;
/* Initialize the return parameter.*/ /* Initialize the return parameter.*/
*ppvObject = 0; *ppvObject = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment