VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/FatalErrorHandler.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-15 00:51:06 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-15 01:07:17 +0200
commit8ae5a715d66dcbc598017f262089165b762f42c5 (patch)
treed1067a8e36e94f246e494677e04ebebaa175febe /src/Main/FatalErrorHandler.cpp
parent33baca72616d7d78e7a31519ea608a8f493842d6 (diff)
downloadVeraCrypt-8ae5a715d66dcbc598017f262089165b762f42c5.tar.gz
VeraCrypt-8ae5a715d66dcbc598017f262089165b762f42c5.zip
MacOSX: First native Apple M1 support
Diffstat (limited to 'src/Main/FatalErrorHandler.cpp')
-rw-r--r--src/Main/FatalErrorHandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main/FatalErrorHandler.cpp b/src/Main/FatalErrorHandler.cpp
index 40b11cca..5e391698 100644
--- a/src/Main/FatalErrorHandler.cpp
+++ b/src/Main/FatalErrorHandler.cpp
@@ -56,9 +56,13 @@ namespace VeraCrypt
#elif defined (TC_MACOSX)
# ifdef __x86_64__
faultingInstructionAddress = context->uc_mcontext->__ss.__rip;
+# else
+# ifdef __aarch64__
+ faultingInstructionAddress = context->uc_mcontext->__ss.__pc;
# else
faultingInstructionAddress = context->uc_mcontext->__ss.__eip;
# endif
+# endif
#endif
wstringstream vars;