From c88bbd8092f9b3e8a371025d1a47d4225cc171db Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Wed, 27 Sep 2006 15:50:35 +0100 Subject: [PATCH] ntdll: NtAllocateVirtual with type of MEM_WRITE_WATCH fails with STATUS_NOT_SUPPORTED on Win2000 instead of STATUS_INVALID_PARAMETER. --- dlls/ntdll/virtual.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index f7b829f5b04..717e394c046 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -1350,11 +1350,16 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG zero_ if (!(type & MEM_SYSTEM)) { 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); 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 ); if (type & MEM_COMMIT) vprot |= VPROT_COMMITTED;