Author: pschweitzer Date: Thu Nov 10 21:17:21 2016 New Revision: 73199
URL: http://svn.reactos.org/svn/reactos?rev=73199&view=rev Log: [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.
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=7... ============================================================================== --- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Thu Nov 10 21:17:21 2016 @@ -2998,7 +2998,7 @@ if (MaximumSize.QuadPart > FileInfo.EndOfFile.QuadPart) { Status = IoSetInformation(FileObject, - FileAllocationInformation, + FileEndOfFileInformation, sizeof(LARGE_INTEGER), &MaximumSize); if (!NT_SUCCESS(Status))