Built-in TrueCrypt: Actually use 86Box's fatal() for TC_THROW_FATAL_EXCEPTION instead of deliberately crashing on a NULL pointer dereference, should fix compile warnings on MacOS.

This commit is contained in:
OBattler
2026-01-18 05:18:56 +01:00
parent 71869e028b
commit 64b7369605

View File

@@ -15,6 +15,8 @@
#include <inttypes.h>
#include <stdlib.h>
#include <86box/86box.h>
#define TC_APP_NAME "TrueCrypt"
// Version displayed to user
@@ -103,7 +105,11 @@ typedef union
} UINT64_STRUCT;
#ifdef ORIGINAL_FATAL
#define TC_THROW_FATAL_EXCEPTION *(char *) 0 = 0
#else
#define TC_THROW_FATAL_EXCEPTION fatal("TrueCrypt: Fatal exception");
#endif
#define burn(mem,size) do { volatile char *burnm = (volatile char *)(mem); int burnc = size; while (burnc--) *burnm++ = 0; } while (0)