[NTOS:NEWCC]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 9 Jun 2014 23:35:16 +0000 (23:35 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Mon, 9 Jun 2014 23:35:16 +0000 (23:35 +0000)
In _MiMapViewOfSegment, if no base address was specified, the granularity should be 64K.

svn path=/trunk/; revision=63583

reactos/ntoskrnl/cache/section/data.c

index 0156ec6..6321919 100644 (file)
@@ -636,7 +636,8 @@ _MiMapViewOfSegment(PMMSUPPORT AddressSpace,
                                 &MArea,
                                 FALSE,
                                 AllocationType,
-                                PAGE_SIZE);
+                                *BaseAddress ?
+                                PAGE_SIZE : MM_ALLOCATION_GRANULARITY);
 
     if (!NT_SUCCESS(Status))
     {