From b7b5e0bdb07258c8f5f90d5648fac8543ec707c7 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 22 Nov 2005 09:53:00 +0000 Subject: [PATCH] Fix boot regression. svn path=/trunk/; revision=19462 --- reactos/ntoskrnl/mm/process.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/reactos/ntoskrnl/mm/process.c b/reactos/ntoskrnl/mm/process.c index 33b98b5666c..2f1baed1a45 100644 --- a/reactos/ntoskrnl/mm/process.c +++ b/reactos/ntoskrnl/mm/process.c @@ -201,16 +201,12 @@ MmCreatePeb(PEPROCESS Process) NTSTATUS Status; KAFFINITY ProcessAffinityMask = 0; SectionOffset.QuadPart = (ULONGLONG)0; - DPRINT("MmCreatePeb\n"); /* Allocate the PEB */ - Peb = MiCreatePebOrTeb(Process, MM_HIGHEST_VAD_ADDRESS); - if (Peb != MM_HIGHEST_VAD_ADDRESS) - { - DPRINT1("MiCreatePebOrTeb() returned %x\n", Peb); - return STATUS_UNSUCCESSFUL; - } + Peb = MiCreatePebOrTeb(Process, + (PVOID)((ULONG_PTR)MM_HIGHEST_VAD_ADDRESS + 1)); + ASSERT(Peb == (PVOID)0x7FFDF000) /* Map NLS Tables */ DPRINT("Mapping NLS\n"); @@ -348,7 +344,8 @@ MmCreateTeb(PEPROCESS Process, } /* Allocate the TEB */ - Teb = MiCreatePebOrTeb(Process, MM_HIGHEST_VAD_ADDRESS); + Teb = MiCreatePebOrTeb(Process, + (PVOID)((ULONG_PTR)MM_HIGHEST_VAD_ADDRESS + 1)); /* Initialize the PEB */ RtlZeroMemory(Teb, sizeof(TEB)); -- 2.17.1