[NTOS::Mm] Fix inverted check in MiWriteProtectSystemImage

This commit is contained in:
Timo Kreuzer 2019-02-24 13:24:26 +01:00
parent 07608028b3
commit 81727760e4

View file

@ -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;