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

This commit is contained in:
Rob Shearman 2006-10-24 13:01:00 +01:00 committed by Alexandre Julliard
parent aa203f0919
commit 47bf80da8c
1 changed files with 10 additions and 6 deletions

View File

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