瀏覽代碼

Merge branch 'ticket21953_029'

Nick Mathewson 8 年之前
父節點
當前提交
d34fa32ece
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/or/main.c

+ 3 - 0
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.