- MmMapViewOfSection: Segment size must be a multiple of page size, so round ViewSize...
authorMichael Martin <michael.martin@reactos.org>
Fri, 8 May 2009 14:12:12 +0000 (14:12 +0000)
committerMichael Martin <michael.martin@reactos.org>
Fri, 8 May 2009 14:12:12 +0000 (14:12 +0000)
OllyDbg now shows loaded dll's in memory and can step into dlls.

svn path=/trunk/; revision=40838

reactos/ntoskrnl/mm/section.c

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