rpcrt4: Fix the pointer level being passed into call_unmarshaller in client_do_args_old_format for base return parameters.

NdrBaseTypeUnmarshall expects a pointer to a pointer to a base type. 
pRetVal contains a pointer to a base type, so we need to pass the 
address of pRetVal into call_unmarshaller here.
This commit is contained in:
Rob Shearman 2008-03-10 17:24:49 +00:00 committed by Alexandre Julliard
parent 259ccc573c
commit 0e7b25349d
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ static void client_do_args_old_format(PMIDL_STUB_MESSAGE pStubMsg,
if (pParam->param_direction == RPC_FC_RETURN_PARAM_BASETYPE)
{
if (pParam->param_direction & RPC_FC_RETURN_PARAM)
call_unmarshaller(pStubMsg, (unsigned char **)pRetVal, pTypeFormat, 0);
call_unmarshaller(pStubMsg, &pRetVal, pTypeFormat, 0);
else
call_unmarshaller(pStubMsg, &pArg, pTypeFormat, 0);
}