Fix bug in memory mapping which caused large applications to BSOD the
system. Abiword setup now works and other large apps should be fixed as
well
Modified: trunk/reactos/ntoskrnl/mm/rmap.c
  _____
Modified: trunk/reactos/ntoskrnl/mm/rmap.c
--- trunk/reactos/ntoskrnl/mm/rmap.c    2005-05-17 17:39:50 UTC (rev
15379)
+++ trunk/reactos/ntoskrnl/mm/rmap.c    2005-05-17 18:04:23 UTC (rev
15380)
@@ -142,7 +142,7 @@
       Status = MmWritePageSectionView(AddressSpace, MemoryArea,
                                       Address, PageOp);
    }
-   else if (Type == MEMORY_AREA_VIRTUAL_MEMORY)
+   else if ((Type == MEMORY_AREA_VIRTUAL_MEMORY) || (Type ==
MEMORY_AREA_PEB_OR_TEB))
    {
       PageOp = MmGetPageOp(MemoryArea, Address < (PVOID)KERNEL_BASE ?
Process->UniqueProcessId : NULL,
                            Address, NULL, 0, MM_PAGEOP_PAGEOUT, TRUE);
@@ -265,7 +265,7 @@
       Status = MmPageOutSectionView(AddressSpace, MemoryArea,
                                     Address, PageOp);
    }
-   else if (Type == MEMORY_AREA_VIRTUAL_MEMORY)
+   else if ((Type == MEMORY_AREA_VIRTUAL_MEMORY) || (Type ==
MEMORY_AREA_PEB_OR_TEB))
    {
       PageOp = MmGetPageOp(MemoryArea, Address < (PVOID)KERNEL_BASE ?
Process->UniqueProcessId : NULL,
                            Address, NULL, 0, MM_PAGEOP_PAGEOUT, TRUE);