mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:43:30 +00:00
[RTL] Inititalize the heap lock pointers with actual storage before calling RtlInitializeHeapLock
svn path=/trunk/; revision=58174
This commit is contained in:
parent
69bc32e0f6
commit
ece7ea44f6
1 changed files with 5 additions and 2 deletions
|
@ -110,11 +110,13 @@ WCHAR RtlpDphTargetDlls[512];
|
|||
|
||||
LIST_ENTRY RtlpDphPageHeapList;
|
||||
BOOLEAN RtlpDphPageHeapListInitialized;
|
||||
PHEAP_LOCK RtlpDphPageHeapListLock;
|
||||
HEAP_LOCK _RtlpDphPageHeapListLock;
|
||||
PHEAP_LOCK RtlpDphPageHeapListLock = &_RtlpDphPageHeapListLock;
|
||||
ULONG RtlpDphPageHeapListLength;
|
||||
UNICODE_STRING RtlpDphTargetDllsUnicode;
|
||||
|
||||
PHEAP_LOCK RtlpDphDelayedFreeQueueLock;
|
||||
HEAP_LOCK _RtlpDphDelayedFreeQueueLock;
|
||||
PHEAP_LOCK RtlpDphDelayedFreeQueueLock = &_RtlpDphDelayedFreeQueueLock;
|
||||
LIST_ENTRY RtlpDphDelayedFreeQueue;
|
||||
SLIST_HEADER RtlpDphDelayedTemporaryPushList;
|
||||
SIZE_T RtlpDphMemoryUsedByDelayedFreeBlocks;
|
||||
|
@ -1485,6 +1487,7 @@ RtlpPageHeapCreate(ULONG Flags,
|
|||
/* Initialize the DPH root */
|
||||
DphRoot->Signature = DPH_SIGNATURE;
|
||||
DphRoot->HeapFlags = Flags;
|
||||
DphRoot->HeapCritSect = (PHEAP_LOCK)((PCHAR)DphRoot + DPH_POOL_SIZE);
|
||||
DphRoot->ExtraFlags = RtlpDphGlobalFlags;
|
||||
|
||||
ZwQueryPerformanceCounter(&PerfCounter, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue