Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
This commit is contained in:
Alan Jowett 2023-10-16 13:42:10 -07:00 коммит произвёл GitHub
Родитель e2b51c5409
Коммит 15c05901ea
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -136,7 +136,6 @@ class _wer_report
HRESULT hr;
hr = WerReportCreate(wer_event_type, WerReportApplicationCrash, nullptr, &report_handle);
if (FAILED(hr)) {
fprintf(stderr, "WerReportCreate failed with error %X\n", hr);
return EXCEPTION_CONTINUE_SEARCH;
}
hr = WerReportAddDump(
@ -148,16 +147,13 @@ class _wer_report
nullptr,
0);
if (FAILED(hr)) {
fprintf(stderr, "WerReportAddDump failed with error %X\n", hr);
return EXCEPTION_CONTINUE_SEARCH;
}
hr = WerReportSubmit(report_handle, WerConsentApproved, 0, nullptr);
if (FAILED(hr)) {
fprintf(stderr, "WerReportSubmit failed with error %X\n", hr);
return EXCEPTION_CONTINUE_SEARCH;
}
fprintf(stderr, "Generation of crash dump succeeded\n");
return EXCEPTION_CONTINUE_SEARCH;
}
void* vectored_exception_handler_handle;