diff --git a/src/init.cpp b/src/init.cpp index dc0f2ce05c9..8ad32f4bdb0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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())