mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Fix another RtlReAllocateHeap call.
This commit is contained in:
parent
e267311e93
commit
602c4a7e8a
@ -808,9 +808,14 @@ void SNOOP_SetupDLL(HMODULE hmod)
|
||||
}
|
||||
dll = &((*dll)->next);
|
||||
}
|
||||
*dll = RtlReAllocateHeap(ntdll_get_process_heap(),
|
||||
if (*dll)
|
||||
*dll = RtlReAllocateHeap(GetProcessHeap(),
|
||||
HEAP_ZERO_MEMORY, *dll,
|
||||
sizeof(SNOOP_DLL) + strlen(name));
|
||||
else
|
||||
*dll = RtlAllocateHeap(GetProcessHeap(),
|
||||
HEAP_ZERO_MEMORY,
|
||||
sizeof(SNOOP_DLL) + strlen(name));
|
||||
(*dll)->hmod = hmod;
|
||||
(*dll)->ordbase = exports->Base;
|
||||
(*dll)->nrofordinals = exports->NumberOfFunctions;
|
||||
|
Loading…
Reference in New Issue
Block a user