Author: cwittich
Date: Mon Jan 19 02:35:51 2009
New Revision: 38929
URL:
http://svn.reactos.org/svn/reactos?rev=38929&view=rev
Log:
fix some more kernel32 virtual tests
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Mon Jan 19 02:35:51 2009
@@ -4538,13 +4538,10 @@
ASSERT(Process);
- if (Protect != PAGE_READONLY &&
- Protect != PAGE_READWRITE &&
- Protect != PAGE_WRITECOPY &&
- Protect != PAGE_EXECUTE &&
- Protect != PAGE_EXECUTE_READ &&
- Protect != PAGE_EXECUTE_READWRITE &&
- Protect != PAGE_EXECUTE_WRITECOPY)
+ if (!(Protect & (PAGE_READONLY | PAGE_READWRITE |
+ PAGE_WRITECOPY | PAGE_EXECUTE |
+ PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE |
+ PAGE_EXECUTE_WRITECOPY | PAGE_NOACCESS)))
{
return STATUS_INVALID_PAGE_PROTECTION;
}