Set the correct length in MmQuerySectionView. Modified: trunk/reactos/ntoskrnl/mm/section.c _____
Modified: trunk/reactos/ntoskrnl/mm/section.c --- trunk/reactos/ntoskrnl/mm/section.c 2005-10-24 15:35:04 UTC (rev 18738) +++ trunk/reactos/ntoskrnl/mm/section.c 2005-10-24 15:56:03 UTC (rev 18739) @@ -1354,7 +1354,7 @@
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 @@ } 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;