logical 'and' applied to non-boolean constant

Reviewed by Thomas Faber and asked for commit, so blame him!
CORE-7207 #resolve #comment Fixed!

svn path=/trunk/; revision=59238
This commit is contained in:
Daniel Reimer
2013-06-16 20:37:04 +00:00
parent 179b2acb7d
commit bfe3f61696
+1 -1
View File
@@ -647,7 +647,7 @@ MiCheckSecuredVad(IN PMMVAD Vad,
(EndAddress >= ((PMMVAD_LONG)Vad)->u3.Secured.StartVpn))
{
/* Guard page? */
if (ProtectionMask && MM_DECOMMIT)
if (ProtectionMask & MM_DECOMMIT)
{
DPRINT1("Not allowed to change protection on guard page!\n");
return STATUS_INVALID_PAGE_PROTECTION;