From d235bb62826f6f2b02a36f1ceee4e5ab9baf4b41 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 24 Oct 2005 15:56:03 +0000 Subject: [PATCH] Set the correct length in MmQuerySectionView. svn path=/trunk/; revision=18739 --- reactos/ntoskrnl/mm/section.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index c541a41957d..f3cf779a697 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -1354,7 +1354,7 @@ MmPageOutDeleteMapping(PVOID Context, PEPROCESS Process, PVOID Address) MmReleasePageMemoryConsumer(MC_USER, Page); } - DPRINT("PhysicalAddress %I64x, Address %x\n", Page, Address); + DPRINT("PhysicalAddress %x, Address %x\n", Page << PAGE_SHIFT, Address); } NTSTATUS @@ -1975,8 +1975,7 @@ MmQuerySectionView(PMEMORY_AREA MemoryArea, } Info->BaseAddress = RegionBaseAddress; Info->AllocationProtect = MemoryArea->Attributes; - Info->RegionSize = PAGE_ROUND_UP((ULONG_PTR)MemoryArea->EndingAddress - - (ULONG_PTR)MemoryArea->StartingAddress); + Info->RegionSize = Region->Length; Info->State = MEM_COMMIT; Info->Protect = Region->Protect;