Commit 0e7b2534 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Fix the pointer level being passed into call_unmarshaller in…

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.
parent 259ccc57
......@@ -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);
}
......
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