mirror of
https://github.com/reactos/reactos.git
synced 2025-07-13 09:04:12 +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 */
|
/* Initialize the Addresss Space */
|
||||||
KeInitializeGuardedMutex(&Process->AddressCreationLock);
|
KeInitializeGuardedMutex(&Process->AddressCreationLock);
|
||||||
Process->Vm.WorkingSetExpansionLinks.Flink = NULL;
|
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 */
|
/* The process now has an address space */
|
||||||
Process->HasAddressSpace = TRUE;
|
Process->HasAddressSpace = TRUE;
|
||||||
|
|
|
@ -532,6 +532,10 @@ MmInitializeProcessAddressSpace(IN PEPROCESS Process,
|
||||||
KeInitializeGuardedMutex(&Process->AddressCreationLock);
|
KeInitializeGuardedMutex(&Process->AddressCreationLock);
|
||||||
Process->Vm.WorkingSetExpansionLinks.Flink = NULL;
|
Process->Vm.WorkingSetExpansionLinks.Flink = NULL;
|
||||||
|
|
||||||
|
/* Initialize AVL tree */
|
||||||
|
ASSERT(Process->VadRoot.NumberGenericTableElements == 0);
|
||||||
|
Process->VadRoot.BalancedRoot.u1.Parent = &Process->VadRoot.BalancedRoot;
|
||||||
|
|
||||||
/* Acquire the Lock */
|
/* Acquire the Lock */
|
||||||
MmLockAddressSpace(ProcessAddressSpace);
|
MmLockAddressSpace(ProcessAddressSpace);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue