mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user