- MmMapViewOfSection: Segment size must be a multiple of page size, so round ViewSize up to next page size.

OllyDbg now shows loaded dll's in memory and can step into dlls.

svn path=/trunk/; revision=40838
This commit is contained in:
Michael Martin 2009-05-08 14:12:12 +00:00
parent 71c299cdfa
commit a63f5f16af

View file

@ -4690,6 +4690,8 @@ MmMapViewOfSection(IN PVOID SectionObject,
(*ViewSize) = Section->MaximumSize.u.LowPart - ViewOffset; (*ViewSize) = Section->MaximumSize.u.LowPart - ViewOffset;
} }
*ViewSize = PAGE_ROUND_UP(*ViewSize);
MmLockSectionSegment(Section->Segment); MmLockSectionSegment(Section->Segment);
Status = MmMapViewOfSegment(AddressSpace, Status = MmMapViewOfSegment(AddressSpace,
Section, Section,