https://git.reactos.org/?p=reactos.git;a=commitdiff;h=81727760e4cb6f99368c9…
commit 81727760e4cb6f99368c96dc129e80e91e54f15e
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Feb 24 13:24:26 2019 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Feb 24 20:34:02 2019 +0100
[NTOS::Mm] Fix inverted check in MiWriteProtectSystemImage
---
ntoskrnl/mm/ARM3/sysldr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/mm/ARM3/sysldr.c b/ntoskrnl/mm/ARM3/sysldr.c
index ffab764ae2..4c2ffdaeb3 100644
--- a/ntoskrnl/mm/ARM3/sysldr.c
+++ b/ntoskrnl/mm/ARM3/sysldr.c
@@ -2389,7 +2389,7 @@ MiWriteProtectSystemImage(
PMMPTE FirstPte, LastPte;
/* Check if the registry setting is on or not */
- if (MmEnforceWriteProtection)
+ if (MmEnforceWriteProtection == FALSE)
{
/* Ignore section protection */
return;