[NTOSKRNL]

In NtAllocateVirtualMemory, when MEM_RESET is passed, silence the DPRINT and also return STATUS_SUCCESS, since MEM_RESET is only an optimization (tells the memory manager that the contents shouldn't be written to the pagefile) and it won't hurt (except the performance) to pretend success. On the other hand paging out is probably never done anyway due to broken Mm.
This fixes spamming the log by Firefox. It does not fix the hangs that firfox suffers from.

svn path=/trunk/; revision=58047
This commit is contained in:
Timo Kreuzer
2012-12-29 21:40:41 +00:00
parent 56ba815b08
commit 776eeb022a
+3 -2
View File
@@ -3861,8 +3861,9 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
}
if ((AllocationType & MEM_RESET) == MEM_RESET)
{
DPRINT1("MEM_RESET not supported\n");
Status = STATUS_INVALID_PARAMETER;
/// @todo HACK: pretend success
DPRINT("MEM_RESET not supported\n");
Status = STATUS_SUCCESS;
goto FailPathNoLock;
}
if (Process->VmTopDown == 1)