[ros-diffs] [ion] 19462: Fix boot regression.

ion at svn.reactos.com ion at svn.reactos.com
Tue Nov 22 10:53:06 CET 2005


Fix boot regression.
Modified: trunk/reactos/ntoskrnl/mm/process.c
  _____  

Modified: trunk/reactos/ntoskrnl/mm/process.c
--- trunk/reactos/ntoskrnl/mm/process.c	2005-11-22 08:26:06 UTC (rev
19461)
+++ trunk/reactos/ntoskrnl/mm/process.c	2005-11-22 09:53:00 UTC (rev
19462)
@@ -201,16 +201,12 @@

     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 @@
     }
 
     /* 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));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051122/9ed947dc/attachment.html


More information about the Ros-diffs mailing list