[NTOSKRNL]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 27 Nov 2016 10:27:43 +0000 (10:27 +0000)
committerPierre 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

index 80f193b..1bfcfb4 100644 (file)
@@ -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))
         {
         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,
             Status = ZwWriteFile(FileHandle,
                                  NULL,
                                  NULL,