MEMORY_AREA_PEB_OR_TEB must be handled like MEMORY_AREA_VIRTUAL_MEMORY. Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/pageop.c _____
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/mm/pageop.c --- branches/cache_manager_rewrite/reactos/ntoskrnl/mm/pageop.c 2005-08-12 21:56:43 UTC (rev 17356) +++ branches/cache_manager_rewrite/reactos/ntoskrnl/mm/pageop.c 2005-08-12 22:04:52 UTC (rev 17357) @@ -83,7 +83,8 @@
{ Hash = (((ULONG_PTR)Segment) | (((ULONG_PTR)Offset) / PAGE_SIZE)); } - else if (MArea->Type == MEMORY_AREA_VIRTUAL_MEMORY) + else if (MArea->Type == MEMORY_AREA_VIRTUAL_MEMORY || + MArea->Type == MEMORY_AREA_PEB_OR_TEB) { Hash = (((ULONG_PTR)Pid) | (((ULONG_PTR)Address) / PAGE_SIZE)); } @@ -157,7 +158,8 @@ { Hash = (((ULONG_PTR)Segment) | (((ULONG_PTR)Offset) / PAGE_SIZE)); } - else if (MArea->Type == MEMORY_AREA_VIRTUAL_MEMORY) + else if (MArea->Type == MEMORY_AREA_VIRTUAL_MEMORY || + MArea->Type == MEMORY_AREA_PEB_OR_TEB) { Hash = (((ULONG_PTR)Pid) | (((ULONG_PTR)Address) / PAGE_SIZE)); }