From 7d49f9ccaabf460f1591b810fba7cfb3f37fb8b1 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Mon, 9 Jun 2014 23:35:16 +0000 Subject: [PATCH] [NTOS:NEWCC] In _MiMapViewOfSegment, if no base address was specified, the granularity should be 64K. svn path=/trunk/; revision=63583 --- reactos/ntoskrnl/cache/section/data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/cache/section/data.c b/reactos/ntoskrnl/cache/section/data.c index 0156ec69306..63219199558 100644 --- a/reactos/ntoskrnl/cache/section/data.c +++ b/reactos/ntoskrnl/cache/section/data.c @@ -636,7 +636,8 @@ _MiMapViewOfSegment(PMMSUPPORT AddressSpace, &MArea, FALSE, AllocationType, - PAGE_SIZE); + *BaseAddress ? + PAGE_SIZE : MM_ALLOCATION_GRANULARITY); if (!NT_SUCCESS(Status)) {