|
@@ -3426,6 +3426,8 @@ tor_main(int argc, char *argv[])
|
|
|
int result = 0;
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
+
|
|
|
+ HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0);
|
|
|
|
|
|
The function will not resolve on earlier versions of Windows,
|
|
|
and failure is not dangerous. */
|
|
@@ -3434,7 +3436,10 @@ tor_main(int argc, char *argv[])
|
|
|
typedef BOOL (WINAPI *PSETDEP)(DWORD);
|
|
|
PSETDEP setdeppolicy = (PSETDEP)GetProcAddress(hMod,
|
|
|
"SetProcessDEPPolicy");
|
|
|
- if (setdeppolicy) setdeppolicy(1);
|
|
|
+ if (setdeppolicy) {
|
|
|
+
|
|
|
+ setdeppolicy(3);
|
|
|
+ }
|
|
|
}
|
|
|
#endif
|
|
|
|