mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Use VS builtin __fastfail intrinsic for fatal exception instead of affecting NULL pointer
This commit is contained in:
@@ -240,6 +240,9 @@ void ThrowFatalException(int line);
|
||||
|| (defined(__GNUC__ ) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))) \
|
||||
|| (__has_builtin(__builtin_trap))
|
||||
# define TC_THROW_FATAL_EXCEPTION __builtin_trap()
|
||||
#elif defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
# define TC_THROW_FATAL_EXCEPTION __fastfail(FAST_FAIL_FATAL_APP_EXIT)
|
||||
#else
|
||||
# define TC_THROW_FATAL_EXCEPTION *(char *) 0 = 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user