release memory from working set after EDC test

pull/2/head
weidai 2003-06-10 00:19:06 +00:00
parent 6c4437d03d
commit b3843db743
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ void DoPowerUpSelfTest(const char *moduleFilename, const byte *expectedModuleSha
}
file.TransferTo(verifier, fileStart - currentFilePos);
verifier.Put(memStart, sectionSize);
::VirtualUnlock((LPVOID)memStart, sectionSize); // release the memory from working set
file.Skip(sectionSize);
currentFilePos = fileStart + sectionSize;
}