Commit 602c4a7e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Fix another RtlReAllocateHeap call.

parent e267311e
...@@ -808,9 +808,14 @@ void SNOOP_SetupDLL(HMODULE hmod) ...@@ -808,9 +808,14 @@ void SNOOP_SetupDLL(HMODULE hmod)
} }
dll = &((*dll)->next); dll = &((*dll)->next);
} }
*dll = RtlReAllocateHeap(ntdll_get_process_heap(), if (*dll)
*dll = RtlReAllocateHeap(GetProcessHeap(),
HEAP_ZERO_MEMORY, *dll, HEAP_ZERO_MEMORY, *dll,
sizeof(SNOOP_DLL) + strlen(name)); sizeof(SNOOP_DLL) + strlen(name));
else
*dll = RtlAllocateHeap(GetProcessHeap(),
HEAP_ZERO_MEMORY,
sizeof(SNOOP_DLL) + strlen(name));
(*dll)->hmod = hmod; (*dll)->hmod = hmod;
(*dll)->ordbase = exports->Base; (*dll)->ordbase = exports->Base;
(*dll)->nrofordinals = exports->NumberOfFunctions; (*dll)->nrofordinals = exports->NumberOfFunctions;
......
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