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);
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);