rpcrt4: Initialize allocated pointers to NULL in PointerUnmarshall.
This patch initializes allocated pointers in PointerUnmarshall since later code checks the value for NULL (specifically, NdrConformantArrayUnmarshall).
This commit is contained in:
parent
eaffc0a0da
commit
8caa325eb7
|
@ -976,8 +976,10 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
|
|||
|
||||
if (pointer_needs_unmarshaling) {
|
||||
if (attr & RPC_FC_P_DEREF) {
|
||||
if (!*pPointer || fMustAlloc)
|
||||
if (!*pPointer || fMustAlloc) {
|
||||
*pPointer = NdrAllocate(pStubMsg, sizeof(void *));
|
||||
*(unsigned char**) *pPointer = NULL;
|
||||
}
|
||||
pPointer = *(unsigned char***)pPointer;
|
||||
TRACE("deref => %p\n", pPointer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue