bazaar: Removed default FP exception activation from CrashHandler

git-svn-id: svn://ultimatepp.org/upp/trunk@15309 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-10-26 15:46:34 +00:00
parent 24642c7f5c
commit 3dcba3ea1c

View file

@ -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);