[NTOSKRNL:MM]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 2 Feb 2013 13:27:49 +0000 (13:27 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 2 Feb 2013 13:27:49 +0000 (13:27 +0000)
- Ignore the unsupported MEM_TOP_DOWN flag instead of failing NtAllocateVirtualMemory
CORE-6392 CORE-6805 #comment MEM_TOP_DOWN should be sufficiently fixed in r58266, and setup now starts. Please confirm.

svn path=/trunk/; revision=58266

reactos/ntoskrnl/mm/ARM3/virtual.c

index 3d3b4a1..55562cc 100644 (file)
@@ -3856,8 +3856,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
     if ((AllocationType & MEM_TOP_DOWN) == MEM_TOP_DOWN)
     {
         DPRINT1("MEM_TOP_DOWN not supported\n");
-        Status = STATUS_INVALID_PARAMETER;
-        goto FailPathNoLock;
+        AllocationType &= ~MEM_TOP_DOWN;
     }
     if ((AllocationType & MEM_RESET) == MEM_RESET)
     {