Fix another RtlReAllocateHeap call.

This commit is contained in:
Dmitry Timoshkov 2003-11-26 22:03:21 +00:00 committed by Alexandre Julliard
parent e267311e93
commit 602c4a7e8a
1 changed files with 6 additions and 1 deletions

View File

@ -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;