rpcrt4: Make sure to set a unique pointer with an id of 0 to NULL when unmarshaling.

This commit is contained in:
Robert Shearman 2006-05-29 16:28:29 +01:00 committed by Alexandre Julliard
parent 11eb8ee042
commit cafd2ab37e
1 changed files with 3 additions and 1 deletions

View File

@ -833,8 +833,10 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
TRACE("pointer_id is 0x%08lx\n", pointer_id);
if (pointer_id)
pointer_needs_unmarshaling = 1;
else
else {
*pPointer = NULL;
pointer_needs_unmarshaling = 0;
}
break;
case RPC_FC_OP: /* object pointer - we must free data before overwriting it */
pointer_id = NDR_LOCAL_UINT32_READ(Buffer);