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:
3bbcc2c
)
[NTOSKRNL]
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 27 Nov 2016 10:27:43 +0000
(10:27 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 27 Nov 2016 10:27:43 +0000
(10:27 +0000)
Don't write random byte. Force a value so that it can be easily recognized.
CORE-11819
CORE-12475
svn path=/trunk/; revision=73391
reactos/ntoskrnl/mm/section.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/mm/section.c
b/reactos/ntoskrnl/mm/section.c
index
80f193b
..
1bfcfb4
100644
(file)
--- a/
reactos/ntoskrnl/mm/section.c
+++ b/
reactos/ntoskrnl/mm/section.c
@@
-5086,6
+5086,7
@@
MmCreateSection (OUT PVOID * Section,
if (Status == STATUS_END_OF_FILE && !(AllocationAttributes & SEC_IMAGE) && FileObject != NULL &&
(FileObject->SectionObjectPointer == NULL || FileObject->SectionObjectPointer->SharedCacheMap == NULL))
{
+ Buffer = 0xdb;
Status = ZwWriteFile(FileHandle,
NULL,
NULL,