Commit 3312d631 authored by Joris Huizer's avatar Joris Huizer Committed by Alexandre Julliard

rpcrt4: Reduce scope of variable (Clang).

parent 5102d4df
...@@ -919,7 +919,6 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, ...@@ -919,7 +919,6 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
} }
if (pointer_needs_unmarshaling) { if (pointer_needs_unmarshaling) {
unsigned char *base_ptr_val = *pPointer;
unsigned char **current_ptr = pPointer; unsigned char **current_ptr = pPointer;
if (pStubMsg->IsClient) { if (pStubMsg->IsClient) {
TRACE("client\n"); TRACE("client\n");
...@@ -932,7 +931,7 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, ...@@ -932,7 +931,7 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
if (!fMustAlloc) { if (!fMustAlloc) {
if (pSrcPointer) { if (pSrcPointer) {
TRACE("setting *pPointer to %p\n", pSrcPointer); TRACE("setting *pPointer to %p\n", pSrcPointer);
*pPointer = base_ptr_val = pSrcPointer; *pPointer = pSrcPointer;
} else } else
fMustAlloc = TRUE; fMustAlloc = TRUE;
} }
...@@ -945,7 +944,6 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, ...@@ -945,7 +944,6 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
if (attr & RPC_FC_P_DEREF) { if (attr & RPC_FC_P_DEREF) {
fMustAlloc = TRUE; fMustAlloc = TRUE;
} else { } else {
base_ptr_val = NULL;
*current_ptr = NULL; *current_ptr = NULL;
} }
} }
...@@ -955,7 +953,7 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, ...@@ -955,7 +953,7 @@ static void PointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
if (attr & RPC_FC_P_DEREF) { if (attr & RPC_FC_P_DEREF) {
if (fMustAlloc) { if (fMustAlloc) {
base_ptr_val = NdrAllocate(pStubMsg, sizeof(void *)); unsigned char *base_ptr_val = NdrAllocate(pStubMsg, sizeof(void *));
*pPointer = base_ptr_val; *pPointer = base_ptr_val;
current_ptr = (unsigned char **)base_ptr_val; current_ptr = (unsigned char **)base_ptr_val;
} else } else
......
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