rpcrt4: Also check base types for null ref pointers.

oldstable
Alexandre Julliard 2011-06-09 20:14:40 +02:00
parent b0f8586078
commit e8567110b3
1 changed files with 3 additions and 0 deletions

View File

@ -315,7 +315,10 @@ static void client_do_args(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat,
&pParam->type_format_char;
if (pParam->param_attributes.IsSimpleRef)
{
pArg = *(unsigned char **)pArg;
if (!pArg) RpcRaiseException(RPC_X_NULL_REF_POINTER);
}
TRACE("\tbase type: 0x%02x\n", *pTypeFormat);