From 3dcba3ea1c6dbd564147719ef2bb6a678318112d Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 26 Oct 2020 15:46:34 +0000 Subject: [PATCH] bazaar: Removed default FP exception activation from CrashHandler git-svn-id: svn://ultimatepp.org/upp/trunk@15309 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SysInfo/Crash.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bazaar/SysInfo/Crash.cpp b/bazaar/SysInfo/Crash.cpp index 4eec6430b..adb030061 100644 --- a/bazaar/SysInfo/Crash.cpp +++ b/bazaar/SysInfo/Crash.cpp @@ -27,9 +27,12 @@ static CrashHandler crash; CrashHandler::CrashHandler() { #if defined(PLATFORM_WIN32) + // You really cannot do this without breaking existing code!!!!! + // You must leave the control over FP exceptions to the application!!! +/* _clearfp(); _controlfp(_controlfp(0, 0) & ~(_EM_INVALID | _EM_ZERODIVIDE | _EM_OVERFLOW), _MCW_EM); - +*/ SetUnhandledExceptionFilter(UnhandledHandler); _set_purecall_handler(PureCallHandler); _set_invalid_parameter_handler(InvalidParameterHandler);