summaryrefslogtreecommitdiff
path: root/desktop/source/app
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-11-25 13:29:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-25 14:20:37 +0000
commite79af02bb0e8de14c881f5071a519f6fadedc828 (patch)
tree23c5596248969b025426caba84aaec41af9913ed /desktop/source/app
parent871d8e0f278dab646e1877a505577edc730a26cf (diff)
Resolves: #i123747# allow treating Window's SEH events as C++ exceptions
The crash reporter facility can provide much better details about crashes. But if that facility is disabled then handling SEH events such as div-by-zero as C++ exceptions is a worthwhile alternative. It can provide a few interesting details and it allows a graceful shutdown of the application. (cherry picked from commit c9d10b167b37a9cb0bb310cafc8e80b6cce8ea7a) Conflicts: sal/osl/w32/signal.cxx Change-Id: I25324d6e02ab8acd8fd2b036b77039aac87cf262
Diffstat (limited to 'desktop/source/app')
-rw-r--r--desktop/source/app/app.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index ee3b4d5048f7..79fdc5048b4e 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1488,11 +1488,8 @@ int Desktop::Main()
// set static variable to enabled/disable crash reporter
retrieveCrashReporterState();
- if ( !isCrashReporterEnabled() )
- {
- osl_setErrorReporting( sal_False );
- // disable stack trace feature
- }
+ const bool bCrashReporterEnabled = isCrashReporterEnabled();
+ osl_setErrorReporting( !bCrashReporterEnabled );
// create title string
LanguageTag aLocale( LANGUAGE_SYSTEM);