projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6db4027
)
[NTOSKRNL]
author
Pierre Schweitzer
<pierre@reactos.org>
Thu, 10 Nov 2016 21:17:21 +0000
(21:17 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Thu, 10 Nov 2016 21:17:21 +0000
(21:17 +0000)
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
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/section.c
b/reactos/ntoskrnl/mm/section.c
index
96295ed
..
31f5482
100644
(file)
--- 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,
- File
Allocation
Information,
+ File
EndOfFile
Information,
sizeof(LARGE_INTEGER),
&MaximumSize);
if (!NT_SUCCESS(Status))