From 1612126bbb54b645862a2ed3a9413a46b3c5b271 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Tue, 17 May 2005 18:04:23 +0000 Subject: [PATCH] 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 svn path=/trunk/; revision=15380 --- reactos/ntoskrnl/mm/rmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/rmap.c b/reactos/ntoskrnl/mm/rmap.c index d12dfaa18d2..8223714bc93 100644 --- a/reactos/ntoskrnl/mm/rmap.c +++ b/reactos/ntoskrnl/mm/rmap.c @@ -142,7 +142,7 @@ MmWritePagePhysicalAddress(PFN_TYPE Page) 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 @@ MmPageOutPhysicalAddress(PFN_TYPE Page) 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);