Author: dreimer
Date: Sun Jun 16 20:37:04 2013
New Revision: 59238
URL:
http://svn.reactos.org/svn/reactos?rev=59238&view=rev
Log:
logical 'and' applied to non-boolean constant
Reviewed by Thomas Faber and asked for commit, so blame him!
CORE-7207 #resolve #comment Fixed!
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/vadnode.c [iso-8859-1] Sun Jun 16 20:37:04 2013
@@ -647,7 +647,7 @@
(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;