Author: mjmartin
Date: Fri May 8 18:12:12 2009
New Revision: 40838
URL:
http://svn.reactos.org/svn/reactos?rev=40838&view=rev
Log:
- 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.
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Fri May 8 18:12:12 2009
@@ -4690,6 +4690,8 @@
(*ViewSize) = Section->MaximumSize.u.LowPart - ViewOffset;
}
+ *ViewSize = PAGE_ROUND_UP(*ViewSize);
+
MmLockSectionSegment(Section->Segment);
Status = MmMapViewOfSegment(AddressSpace,
Section,