mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[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
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user