mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Add missing AVL tree initialization.
svn path=/trunk/; revision=41186
This commit is contained in:
parent
65c1e96e4f
commit
fbb5ecf591
2 changed files with 6 additions and 0 deletions
|
@ -173,6 +173,8 @@ MmInitializeHandBuiltProcess(IN PEPROCESS Process,
|
|||
/* Initialize the Addresss Space */
|
||||
KeInitializeGuardedMutex(&Process->AddressCreationLock);
|
||||
Process->Vm.WorkingSetExpansionLinks.Flink = NULL;
|
||||
ASSERT(Process->VadRoot.NumberGenericTableElements == 0);
|
||||
Process->VadRoot.BalancedRoot.u1.Parent = &Process->VadRoot.BalancedRoot;
|
||||
|
||||
/* The process now has an address space */
|
||||
Process->HasAddressSpace = TRUE;
|
||||
|
|
|
@ -532,6 +532,10 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
|
|||
KeInitializeGuardedMutex(&Process->AddressCreationLock);
|
||||
Process->Vm.WorkingSetExpansionLinks.Flink = NULL;
|
||||
|
||||
/* Initialize AVL tree */
|
||||
ASSERT(Process->VadRoot.NumberGenericTableElements == 0);
|
||||
Process->VadRoot.BalancedRoot.u1.Parent = &Process->VadRoot.BalancedRoot;
|
||||
|
||||
/* Acquire the Lock */
|
||||
MmLockAddressSpace(ProcessAddressSpace);
|
||||
|
||||
|
|
Loading…
Reference in a new issue