mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
win: Check that UseHandler() has been called in DumpAndCrash()
Change-Id: I16ee8bf4ccb54a26dfd35551ab1ea1be838a9207 Reviewed-on: https://chromium-review.googlesource.com/337300 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
12536e06e5
commit
1fe622550d
@ -461,6 +461,11 @@ void CrashpadClient::DumpWithoutCrash(const CONTEXT& context) {
|
|||||||
|
|
||||||
// static
|
// static
|
||||||
void CrashpadClient::DumpAndCrash(EXCEPTION_POINTERS* exception_pointers) {
|
void CrashpadClient::DumpAndCrash(EXCEPTION_POINTERS* exception_pointers) {
|
||||||
|
if (g_signal_exception == INVALID_HANDLE_VALUE) {
|
||||||
|
LOG(ERROR) << "haven't called UseHandler()";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
UnhandledExceptionHandler(exception_pointers);
|
UnhandledExceptionHandler(exception_pointers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user