mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
fix some more kernel32 virtual tests
svn path=/trunk/; revision=38929
This commit is contained in:
parent
d318fedb6d
commit
9a921d3209
1 changed files with 4 additions and 7 deletions
|
@ -4538,13 +4538,10 @@ MmMapViewOfSection(IN PVOID SectionObject,
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue