1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Windows: Use VS builtin __fastfail intrinsic for fatal exception instead of affecting NULL pointer

This commit is contained in:
Mounir IDRASSI
2024-11-15 00:42:19 +01:00
parent 43ad4f93eb
commit fc4a544180

View File

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