From e01923caaa972e00083f6bae9424bd840f65af06 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Thu, 10 Nov 2016 21:17:21 +0000 Subject: [PATCH] [NTOSKRNL] In MmCreateDataFileSection(), when maximum size is higher than file size, don't deal with its allocation size, just move EOF. This was shown by NtCreateSection() tests. svn path=/trunk/; revision=73199 --- reactos/ntoskrnl/mm/section.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 96295edb945..31f5482bab7 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -2998,7 +2998,7 @@ MmCreateDataFileSection(PROS_SECTION_OBJECT *SectionObject, if (MaximumSize.QuadPart > FileInfo.EndOfFile.QuadPart) { Status = IoSetInformation(FileObject, - FileAllocationInformation, + FileEndOfFileInformation, sizeof(LARGE_INTEGER), &MaximumSize); if (!NT_SUCCESS(Status))