mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 07:28:19 +00:00
[NTOSKRNL]: Fix stupid checks
svn path=/trunk/; revision=57217
This commit is contained in:
parent
ec28155f4f
commit
e715ded83a
1 changed files with 5 additions and 5 deletions
|
@ -3803,31 +3803,31 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
|
|||
Status = STATUS_INVALID_PARAMETER;
|
||||
goto FailPathNoLock;
|
||||
}
|
||||
if ((AllocationType & MEM_LARGE_PAGES) == 1)
|
||||
if ((AllocationType & MEM_LARGE_PAGES) == MEM_LARGE_PAGES)
|
||||
{
|
||||
DPRINT1("MEM_LARGE_PAGES not supported\n");
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
goto FailPathNoLock;
|
||||
}
|
||||
if ((AllocationType & MEM_PHYSICAL) == 1)
|
||||
if ((AllocationType & MEM_PHYSICAL) ==MEM_PHYSICAL)
|
||||
{
|
||||
DPRINT1("MEM_PHYSICAL not supported\n");
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
goto FailPathNoLock;
|
||||
}
|
||||
if ((AllocationType & MEM_WRITE_WATCH) == 1)
|
||||
if ((AllocationType & MEM_WRITE_WATCH) == MEM_WRITE_WATCH)
|
||||
{
|
||||
DPRINT1("MEM_WRITE_WATCH not supported\n");
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
goto FailPathNoLock;
|
||||
}
|
||||
if ((AllocationType & MEM_TOP_DOWN) == 1)
|
||||
if ((AllocationType & MEM_TOP_DOWN) == MEM_TOP_DOWN)
|
||||
{
|
||||
DPRINT1("MEM_TOP_DOWN not supported\n");
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
goto FailPathNoLock;
|
||||
}
|
||||
if ((AllocationType & MEM_RESET) == 1)
|
||||
if ((AllocationType & MEM_RESET) == MEM_RESET)
|
||||
{
|
||||
DPRINT1("MEM_RESET not supported\n");
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
|
|
Loading…
Reference in a new issue