ntdll: NtAllocateVirtual with type of MEM_WRITE_WATCH fails with STATUS_NOT_SUPPORTED on Win2000 instead of STATUS_INVALID_PARAMETER.
This commit is contained in:
parent
f9e12a1001
commit
c88bbd8092
|
@ -1350,11 +1350,16 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG zero_
|
||||||
if (!(type & MEM_SYSTEM))
|
if (!(type & MEM_SYSTEM))
|
||||||
{
|
{
|
||||||
if (!(type & (MEM_COMMIT | MEM_RESERVE)) ||
|
if (!(type & (MEM_COMMIT | MEM_RESERVE)) ||
|
||||||
(type & ~(MEM_COMMIT | MEM_RESERVE | MEM_TOP_DOWN)))
|
(type & ~(MEM_COMMIT | MEM_RESERVE | MEM_TOP_DOWN | MEM_WRITE_WATCH | MEM_RESET)))
|
||||||
{
|
{
|
||||||
WARN("called with wrong alloc type flags (%08lx) !\n", type);
|
WARN("called with wrong alloc type flags (%08lx) !\n", type);
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
if (type & MEM_WRITE_WATCH)
|
||||||
|
{
|
||||||
|
FIXME("MEM_WRITE_WATCH type not supported\n");
|
||||||
|
return STATUS_NOT_SUPPORTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
vprot = VIRTUAL_GetProt( protect );
|
vprot = VIRTUAL_GetProt( protect );
|
||||||
if (type & MEM_COMMIT) vprot |= VPROT_COMMITTED;
|
if (type & MEM_COMMIT) vprot |= VPROT_COMMITTED;
|
||||||
|
|
Loading…
Reference in New Issue