forked from boostorg/core
lwt_unattended: disable WER dialog box on crash
This commit is contained in:
@@ -27,6 +27,14 @@ inline void lwt_unattended()
|
|||||||
// disable message boxes on assert(), abort()
|
// disable message boxes on assert(), abort()
|
||||||
::_set_abort_behavior( 0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT );
|
::_set_abort_behavior( 0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT );
|
||||||
|
|
||||||
|
# pragma warning(push)
|
||||||
|
# pragma warning(disable: 4996)
|
||||||
|
|
||||||
|
// disable message box on crash
|
||||||
|
::_seterrormode( /*SEM_NOGPFAULTERRORBOX*/ 0x0002 );
|
||||||
|
|
||||||
|
# pragma warning(pop)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && defined(_CPPLIB_VER) && defined(_DEBUG)
|
#if defined(_MSC_VER) && defined(_CPPLIB_VER) && defined(_DEBUG)
|
||||||
|
Reference in New Issue
Block a user