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..c293cb3a94b335740e63baecf2414964eda0dd6c 100644 |
--- a/handler/win/crash_report_exception_handler.cc |
+++ b/handler/win/crash_report_exception_handler.cc |
@@ -21,7 +21,6 @@ |
#include "snapshot/win/process_snapshot_win.h" |
#include "util/file/file_writer.h" |
#include "util/win/registration_protocol_win.h" |
-#include "util/win/scoped_process_suspend.h" |
namespace crashpad { |
@@ -45,10 +44,9 @@ unsigned int CrashReportExceptionHandler::ExceptionHandlerServerException( |
WinVMAddress exception_information_address) { |
const unsigned int kFailedTerminationCode = 0xffff7002; |
- 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; |
} |