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

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: 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
Index: chrome/app/breakpad_win.cc
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc
index 9bd8e1ec669e3d713e951565c58fe258b92e74e1..d1e984eccd7980c7636bb8a3c66e50a9506a1b25 100644
--- a/chrome/app/breakpad_win.cc
+++ b/chrome/app/breakpad_win.cc
@@ -520,7 +520,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(),
rvargas (doing something else) 2012/03/21 03:13:45 Don't you want to reset the flag from this place i
eroman 2012/03/21 04:14:31 (Didn't reset because was harder; this code is run
rvargas (doing something else) 2012/03/21 17:46:12 Right, the exe... TerminateProcess sounds good. (T
+ chrome::RESULT_CODE_RESPAWN_FAILED);
}
return true;
@@ -570,7 +571,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;
}

Powered by Google App Engine
This is Rietveld 408576698