https://git.reactos.org/?p=reactos.git;a=commitdiff;h=674ab3dce3da08ca41b96…
commit 674ab3dce3da08ca41b9685cbec5bb3d48fdcece
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Thu Dec 17 18:09:56 2020 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 09:41:22 2021 +0100
[NTOS:MM] Remove a check for now
---
ntoskrnl/mm/section.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c
index c20c506c2b8..b709a50cd8d 100644
--- a/ntoskrnl/mm/section.c
+++ b/ntoskrnl/mm/section.c
@@ -4356,12 +4356,17 @@ MmCreateSection (OUT PVOID * Section,
FileLock = TRUE;
/* Deny access if there are writes on the file */
+#if 0
if ((AllocationAttributes & SEC_IMAGE) && (Status ==
STATUS_FILE_LOCKED_WITH_WRITERS))
{
DPRINT1("Cannot create image maps with writers open on the
file!\n");
Status = STATUS_ACCESS_DENIED;
goto Quit;
}
+#else
+ if ((AllocationAttributes & SEC_IMAGE) && (Status ==
STATUS_FILE_LOCKED_WITH_WRITERS))
+ DPRINT1("Creating image map with writers open on the
file!\n");
+#endif
}
else
{
@@ -4415,7 +4420,6 @@ MmCreateSection (OUT PVOID * Section,
Status = STATUS_INVALID_PARAMETER;
}
-Quit:
if (FileLock)
FsRtlReleaseFile(FileObject);
if (FileObject)