VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-02 01:16:37 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-02 01:17:59 +0200
commita505f3d98b826775b03e693c55c7e2ea82288ed5 (patch)
treeae891d0169efe6d7c25d73e8d6197edfc30c8e67
parent17a3c3dbe09750aba0824a786687c4b071b53bfc (diff)
downloadVeraCrypt-a505f3d98b826775b03e693c55c7e2ea82288ed5.tar.gz
VeraCrypt-a505f3d98b826775b03e693c55c7e2ea82288ed5.zip
Windows: Fix wrong detection of ARM architecture
-rw-r--r--src/Common/Dlgcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 856d4241..ecd91683 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -10855,7 +10855,7 @@ BOOL IsARM()
USHORT processMachine, nativeMachine;
if (fnIsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine))
{
- if (IMAGE_FILE_MACHINE_ARM64 == nativeMachine || IMAGE_FILE_MACHINE_AMD64 == nativeMachine || IMAGE_FILE_MACHINE_IA64 == nativeMachine || IMAGE_FILE_MACHINE_ALPHA64 == nativeMachine)
+ if (IMAGE_FILE_MACHINE_ARM64 == nativeMachine || IMAGE_FILE_MACHINE_ARM == nativeMachine)
isARM = TRUE;
else
isARM = FALSE;