diff --git a/src/or/main.c b/src/or/main.c index 670535b5d5..398c4f63d2 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -3667,6 +3667,9 @@ tor_main(int argc, char *argv[]) int result = 0; #ifdef _WIN32 +#ifndef HeapEnableTerminationOnCorruption +#define HeapEnableTerminationOnCorruption 1 +#endif /* On heap corruption, just give up; don't try to play along. */ HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0); /* Call SetProcessDEPPolicy to permanently enable DEP.