[ros-diffs] [mjmartin] 40838: - 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.

mjmartin at svn.reactos.org mjmartin at svn.reactos.org
Fri May 8 16:12:14 CEST 2009


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=40838&r1=40837&r2=40838&view=diff
==============================================================================
--- 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,



More information about the Ros-diffs mailing list