Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1703)

Unified Diff: chrome/app/breakpad_win.cc

Issue 9803002: [windows] Make calls to exit(), _exit(), abort(), and ExitProcess() from the renderer process resul… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address brettw comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/win/win_util.cc ('k') | content/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_win.cc
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc
index 6c0cdf7a40eeb3c8893ebf5a01f16d158e8ba806..10bd4020168e5dc5ebdbbc4d0ec94d24c1149a1b 100644
--- a/chrome/app/breakpad_win.cc
+++ b/chrome/app/breakpad_win.cc
@@ -544,7 +544,8 @@ bool WrapMessageBoxWithSEH(const wchar_t* text, const wchar_t* caption,
*exit_now = (IDOK != ::MessageBoxW(NULL, text, caption, flags));
} __except(EXCEPTION_EXECUTE_HANDLER) {
// Its not safe to continue executing, exit silently here.
- ::ExitProcess(chrome::RESULT_CODE_RESPAWN_FAILED);
+ ::TerminateProcess(::GetCurrentProcess(),
+ chrome::RESULT_CODE_RESPAWN_FAILED);
}
return true;
@@ -594,7 +595,7 @@ extern "C" int __declspec(dllexport) CrashForException(
EXCEPTION_POINTERS* info) {
if (g_breakpad) {
g_breakpad->WriteMinidumpForException(info);
- ::ExitProcess(content::RESULT_CODE_KILLED);
+ ::TerminateProcess(::GetCurrentProcess(), content::RESULT_CODE_KILLED);
}
return EXCEPTION_CONTINUE_SEARCH;
}
« no previous file with comments | « base/win/win_util.cc ('k') | content/renderer/renderer_main_platform_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698