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

oldstable
Jacek Caban 2007-12-30 17:44:32 +01:00 committed by Alexandre Julliard
parent bc35dda746
commit 2c6cbea080
1 changed files with 3 additions and 3 deletions

View File

@ -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;