mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
One more test can't hurt.
svn path=/trunk/; revision=17140
This commit is contained in:
parent
0077f21d71
commit
17f39f0290
1 changed files with 7 additions and 0 deletions
|
@ -562,6 +562,13 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
|||
return STATUS_INVALID_PAGE_PROTECTION;
|
||||
}
|
||||
|
||||
/* Check for valid Zero bits */
|
||||
if (ZeroBits > 21)
|
||||
{
|
||||
DPRINT1("Too many zero bits\n");
|
||||
return STATUS_INVALID_PARAMETER_3;
|
||||
}
|
||||
|
||||
/* Check for valid Allocation Types */
|
||||
if ((AllocationType &~ (MEM_COMMIT | MEM_RESERVE | MEM_RESET | MEM_PHYSICAL |
|
||||
MEM_TOP_DOWN | MEM_WRITE_WATCH)))
|
||||
|
|
Loading…
Reference in a new issue