mirror of
https://github.com/reactos/reactos.git
synced 2026-06-21 22:22:48 +08:00
[NTOS/MM] Do not zero out the tail of the segment if the mapping is not an image
This commit is contained in:
@@ -1205,7 +1205,7 @@ MiReadPage(PMEMORY_AREA MemoryArea,
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if ((SegOffset + PAGE_SIZE) > MemoryArea->SectionData.Segment->RawLength.QuadPart)
|
||||
if ((MemoryArea->VadNode.u.VadFlags.VadType == VadImageMap) && ((SegOffset + PAGE_SIZE) > MemoryArea->SectionData.Segment->RawLength.QuadPart))
|
||||
{
|
||||
KIRQL OldIrql;
|
||||
PUCHAR PageMap;
|
||||
|
||||
Reference in New Issue
Block a user