Index: base/process_util_win.cc |
=================================================================== |
--- base/process_util_win.cc (revision 2361) |
+++ base/process_util_win.cc (working copy) |
@@ -594,6 +594,11 @@ |
return true; |
} |
+void EnableTerminationOnHeapCorruption() { |
+ // Ignore the result code. Supported on XP SP3 and Vista. |
+ HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0); |
+} |
+ |
void RaiseProcessToHighPriority() { |
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); |
} |