diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-24 12:58:37 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-24 12:58:37 +0000 |
commit | c9d40877fb0df5306deac35ff176a02c667d90e8 (patch) | |
tree | 07e1e03a75ac5637ebc5543d73366ce29b2854bf /chrome/app | |
parent | 025517044b4be3ab45efc2f383e5a7b830aa7281 (diff) | |
download | chromium_src-c9d40877fb0df5306deac35ff176a02c667d90e8.zip chromium_src-c9d40877fb0df5306deac35ff176a02c667d90e8.tar.gz chromium_src-c9d40877fb0df5306deac35ff176a02c667d90e8.tar.bz2 |
Enforce Terminate on Heap Corruption in most of our executable on Windows XP SP3 or Vista.
This won't submit the crash dump but it's still better than nothing.
Fix broken alignment on test_shell_main.cc.
Review URL: http://codereview.chromium.org/3105
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/chrome.exe.deps | 1 | ||||
-rw-r--r-- | chrome/app/chrome_exe_main.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/app/chrome.exe.deps b/chrome/app/chrome.exe.deps index 8bb18eb..354426d 100644 --- a/chrome/app/chrome.exe.deps +++ b/chrome/app/chrome.exe.deps @@ -6,6 +6,7 @@ dependents = [ 'ADVAPI32.dll',
'SHELL32.dll',
'VERSION.dll', # Used by breakpad
+ 'winmm.dll',
]
dependents_google_chrome = [
diff --git a/chrome/app/chrome_exe_main.cc b/chrome/app/chrome_exe_main.cc index 3bf6439..cec04a9 100644 --- a/chrome/app/chrome_exe_main.cc +++ b/chrome/app/chrome_exe_main.cc @@ -9,6 +9,7 @@ #include "base/base_switches.h" #include "base/command_line.h" #include "base/debug_on_start.h" +#include "base/process_util.h" #include "chrome/app/breakpad.h" #include "chrome/app/client_util.h" #include "chrome/app/google_update_client.h" @@ -19,6 +20,8 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev_instance, wchar_t* command_line, int show_command) { + process_util::EnableTerminationOnHeapCorruption(); + // The exit manager is in charge of calling the dtors of singletons. base::AtExitManager exit_manager; |