Commit 47bf80da authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

oleaut32: Fix a crash in dump_DispParms when running the typelib test with debug tracing on.

parent aa203f09
......@@ -1298,15 +1298,19 @@ static void dump_DispParms(const DISPPARAMS * pdp)
TRACE("args=%u named args=%u\n", pdp->cArgs, pdp->cNamedArgs);
if (pdp->cNamedArgs)
if (pdp->cNamedArgs && pdp->rgdispidNamedArgs)
{
TRACE("named args:\n");
for (index = 0; index < pdp->cNamedArgs; index++)
TRACE( "\t0x%x\n", pdp->rgdispidNamedArgs[index] );
for (index = 0; index < pdp->cNamedArgs; index++)
TRACE( "\t0x%x\n", pdp->rgdispidNamedArgs[index] );
}
if (pdp->cArgs)
if (pdp->cArgs && pdp->rgvarg)
{
TRACE("args:\n");
for (index = 0; index < pdp->cArgs; index++)
dump_Variant( &pdp->rgvarg[index] );
for (index = 0; index < pdp->cArgs; index++)
dump_Variant( &pdp->rgvarg[index] );
}
}
static void dump_TypeInfo(const ITypeInfoImpl * pty)
......
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