summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-19 06:44:13 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-19 06:46:49 -0400
commit15cc41e6649009ccd92d927850f918b962ee35d6 (patch)
tree2d993c677b055bfbbb98afc25cb168e4f597b142 /src/or/main.c
parent503f101d2b1d8dfdd17cc2aa79fc10d79eecd04c (diff)
downloadtor-15cc41e6649009ccd92d927850f918b962ee35d6.tar.gz
tor-15cc41e6649009ccd92d927850f918b962ee35d6.zip
Define HeapEnableTerminationOnCorruption if the headers don't.
MSDN says that it's always going to be 1, and they're usually pretty accurate about that. Fixes a bug in 21953.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 2de8ed29ac..187b255bfb 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -3426,6 +3426,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.