mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
windows: Enable heap terminate-on-corruption
This is default behavior from Windows 8 onwards, however we still support Windows 7, so it should make sense to explicitly enable this. More info: https://docs.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapsetinformation
This commit is contained in:
parent
e258ce792a
commit
f2645c2601
1 changed files with 3 additions and 0 deletions
|
@ -879,6 +879,9 @@ bool AppInitBasicSetup()
|
|||
#ifdef WIN32
|
||||
// Enable Data Execution Prevention (DEP)
|
||||
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
|
||||
|
||||
// Enable heap terminate-on-corruption
|
||||
HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0);
|
||||
#endif
|
||||
|
||||
if (!SetupNetworking())
|
||||
|
|
Loading…
Add table
Reference in a new issue