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

Unified Diff: handler/win/crash_report_exception_handler.cc

Issue 1326443007: win: Fix incorrect thread suspend count due to ScopedProcessSuspend (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: assert some threads captured Created 5 years, 3 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 | « no previous file | snapshot/crashpad_info_client_options_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: handler/win/crash_report_exception_handler.cc
diff --git a/handler/win/crash_report_exception_handler.cc b/handler/win/crash_report_exception_handler.cc
index 69df244f7f9e0c5c3d81058cff57d084c6c38e79..843ac0f5a9aade7cfde120853f4fadffdb8aa9c1 100644
--- a/handler/win/crash_report_exception_handler.cc
+++ b/handler/win/crash_report_exception_handler.cc
@@ -48,7 +48,8 @@ unsigned int CrashReportExceptionHandler::ExceptionHandlerServerException(
ScopedProcessSuspend suspend(process);
ProcessSnapshotWin process_snapshot;
- if (!process_snapshot.Initialize(process)) {
+ if (!process_snapshot.Initialize(process,
+ ProcessSuspensionState::kSuspended)) {
LOG(WARNING) << "ProcessSnapshotWin::Initialize failed";
return kFailedTerminationCode;
}
« no previous file with comments | « no previous file | snapshot/crashpad_info_client_options_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698