mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
Minor fixes for crashpad_wer_main.cc
These were suggested after https://crrev.com/c/3864248 was submitted. Change-Id: I73c451a3ea52721d8476e229cff7a0aded6746ac Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3902210 Commit-Queue: Alan Zhao <ayzhao@google.com> Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
ca928c8d6b
commit
cca548be84
@ -73,7 +73,7 @@ ScopedHandle DuplicateFromTarget(HANDLE target_process, HANDLE target_handle) {
|
||||
return ScopedHandle(hTmp);
|
||||
}
|
||||
|
||||
bool ProcessException(DWORD* handled_exceptions,
|
||||
bool ProcessException(const DWORD* handled_exceptions,
|
||||
size_t num_handled_exceptions,
|
||||
const PVOID pContext,
|
||||
const PWER_RUNTIME_EXCEPTION_INFORMATION e_info) {
|
||||
@ -193,7 +193,7 @@ bool ProcessException(DWORD* handled_exceptions,
|
||||
} // namespace
|
||||
|
||||
bool ExceptionEvent(
|
||||
DWORD* handled_exceptions,
|
||||
const DWORD* handled_exceptions,
|
||||
size_t num_handled_exceptions,
|
||||
const PVOID pContext,
|
||||
const PWER_RUNTIME_EXCEPTION_INFORMATION pExceptionInformation) {
|
||||
|
@ -37,7 +37,7 @@ namespace crashpad::wer {
|
||||
//! \return `true` if the target process was dumped by the crashpad handler then
|
||||
//! terminated, or `false` otherwise.
|
||||
bool ExceptionEvent(
|
||||
DWORD* handled_exceptions,
|
||||
const DWORD* handled_exceptions,
|
||||
size_t num_handled_exceptions,
|
||||
const PVOID pContext,
|
||||
const PWER_RUNTIME_EXCEPTION_INFORMATION pExceptionInformation);
|
||||
|
@ -36,17 +36,17 @@ HRESULT OutOfProcessExceptionEventCallback(
|
||||
PWSTR pwszEventName,
|
||||
PDWORD pchSize,
|
||||
PDWORD pdwSignatureCount) {
|
||||
DWORD wanted_exceptions[] = {
|
||||
static constexpr DWORD wanted_exceptions[] = {
|
||||
0xC0000602, // STATUS_FAIL_FAST_EXCEPTION
|
||||
0xC0000409, // STATUS_STACK_BUFFER_OVERRUN
|
||||
};
|
||||
// Default to not-claiming as bailing out is easier.
|
||||
*pbOwnershipClaimed = FALSE;
|
||||
bool result =
|
||||
crashpad::wer::ExceptionEvent(wanted_exceptions,
|
||||
sizeof(wanted_exceptions) / sizeof(DWORD),
|
||||
pContext,
|
||||
pExceptionInformation);
|
||||
bool result = crashpad::wer::ExceptionEvent(
|
||||
wanted_exceptions,
|
||||
sizeof(wanted_exceptions) / sizeof(wanted_exceptions[0]),
|
||||
pContext,
|
||||
pExceptionInformation);
|
||||
|
||||
if (result) {
|
||||
*pbOwnershipClaimed = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user