1
0
Fork 0

DBG: improve working set mitigation

This commit is contained in:
Duncan Ogilvie 2020-05-27 23:32:40 +02:00
parent d2f19c334d
commit 33403df92b
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ static bool IgnoreThisRead(HANDLE hProcess, LPVOID lpBaseAddress, LPVOID lpBuffe
if(fnQueryWorkingSetEx(hProcess, &wsi, sizeof(wsi)) && !wsi.VirtualAttributes.Valid)
{
MEMORY_BASIC_INFORMATION mbi;
if(VirtualQueryEx(hProcess, wsi.VirtualAddress, &mbi, sizeof(mbi)) && mbi.State == MEM_COMMIT && mbi.Type == MEM_PRIVATE)
if(VirtualQueryEx(hProcess, wsi.VirtualAddress, &mbi, sizeof(mbi)) && mbi.State == MEM_COMMIT/* && mbi.Type == MEM_PRIVATE*/)
{
memset(lpBuffer, 0, nSize);
if(lpNumberOfBytesRead)