mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
Set the correct length in MmQuerySectionView.
svn path=/trunk/; revision=18739
This commit is contained in:
parent
5c327e140d
commit
d235bb6282
1 changed files with 2 additions and 3 deletions
|
@ -1354,7 +1354,7 @@ MmPageOutDeleteMapping(PVOID Context, PEPROCESS Process, PVOID Address)
|
||||||
MmReleasePageMemoryConsumer(MC_USER, Page);
|
MmReleasePageMemoryConsumer(MC_USER, Page);
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT("PhysicalAddress %I64x, Address %x\n", Page, Address);
|
DPRINT("PhysicalAddress %x, Address %x\n", Page << PAGE_SHIFT, Address);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -1975,8 +1975,7 @@ MmQuerySectionView(PMEMORY_AREA MemoryArea,
|
||||||
}
|
}
|
||||||
Info->BaseAddress = RegionBaseAddress;
|
Info->BaseAddress = RegionBaseAddress;
|
||||||
Info->AllocationProtect = MemoryArea->Attributes;
|
Info->AllocationProtect = MemoryArea->Attributes;
|
||||||
Info->RegionSize = PAGE_ROUND_UP((ULONG_PTR)MemoryArea->EndingAddress -
|
Info->RegionSize = Region->Length;
|
||||||
(ULONG_PTR)MemoryArea->StartingAddress);
|
|
||||||
Info->State = MEM_COMMIT;
|
Info->State = MEM_COMMIT;
|
||||||
Info->Protect = Region->Protect;
|
Info->Protect = Region->Protect;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue