diff options
| author | Eran Mizrahi <erasmux@gmail.com> | 2017-12-11 20:13:35 +0200 |
|---|---|---|
| committer | Eran Mizrahi <erasmux@gmail.com> | 2017-12-11 20:13:35 +0200 |
| commit | ebb30e0c3731ee4acc86de63c4b32a6be9e4de4f (patch) | |
| tree | 4c48bc306201b31cd1675e54d4beb16ee7cf9169 /src | |
| parent | 361e59e40d7e955eaaaa1cf4dd4f407a5ca7cdef (diff) | |
Revert "Collect crash dumps also for vectored exceptions"
This reverts commit b75e3c12318267be1589cee5e13a9fc89b0097b1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index dbf41afb..7f1f199e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -123,12 +123,6 @@ bool bootstrap() static LONG WINAPI MyUnhandledExceptionFilter(struct _EXCEPTION_POINTERS *exceptionPtrs)
{
- if ((exceptionPtrs->ExceptionRecord->ExceptionCode < 0x80000000) // non-critical
- || (exceptionPtrs->ExceptionRecord->ExceptionCode == 0xe06d7363)) { // cpp exception
- // don't report non-critical exceptions
- return EXCEPTION_CONTINUE_SEARCH;
- }
-
const std::wstring& dumpPath = OrganizerCore::crashDumpsPath();
int dumpRes =
CreateMiniDump(exceptionPtrs, OrganizerCore::getGlobalCrashDumpsType(), dumpPath.c_str());
@@ -532,7 +526,7 @@ int runApplication(MOApplication &application, SingleInstance &instance, int main(int argc, char *argv[])
{
- AddVectoredExceptionHandler(0, MyUnhandledExceptionFilter);
+ SetUnhandledExceptionFilter(MyUnhandledExceptionFilter);
MOApplication application(argc, argv);
QStringList arguments = application.arguments();
|
