[NTOS]: If the address space is exhausted, don't ASSERT, simply return failure just as Windows does. Should fix the last of the ASSERTions on TestBot.

Next step is to support VirtualProtect/Query correctly.

svn path=/trunk/; revision=55991
This commit is contained in:
Sir Richard 2012-03-04 07:04:42 +00:00
parent 83a2328786
commit 9bb1ba5ee4

View file

@ -3345,7 +3345,7 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
&Process->VadRoot,
(PMMADDRESS_NODE*)&Process->VadFreeHint,
&StartingAddress);
ASSERT(NT_SUCCESS(Status));
if (!NT_SUCCESS(Status)) goto FailPath;
//
// Now we know where the allocation ends. Make sure it doesn't end up