summary refs log tree commit diff stats
path: root/src/common/sysinfo/win32
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2022-01-21 14:05:09 +0530
committerPatrick <tingping@tingping.se>2022-01-21 15:54:30 -0600
commita330c1cf4dc4a5a7be2e44e8622a566f01da594c (patch)
treefe5808659075a7ad5f53f8fa9891da42fa26fecd /src/common/sysinfo/win32
parent7df34cdcb2039678356f9dd44bb52e670dbcf8ce (diff)
sysinfo: Fix architecture detection in AArch64 Windows
AArch64 should be detected as 64 bit OS.
Diffstat (limited to 'src/common/sysinfo/win32')
-rw-r--r--src/common/sysinfo/win32/backend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/sysinfo/win32/backend.c b/src/common/sysinfo/win32/backend.c
index 1d88b139..67a0fd2b 100644
--- a/src/common/sysinfo/win32/backend.c
+++ b/src/common/sysinfo/win32/backend.c
@@ -84,7 +84,8 @@ sysinfo_get_cpu_arch (void)
 
 	GetNativeSystemInfo (&si);
 
-	if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
+	if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
+		si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_ARM64)
 	{
 		return cpu_arch = 64;
 	}
@@ -106,7 +107,8 @@ sysinfo_get_build_arch (void)
 
 	GetSystemInfo (&si);
 
-	if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
+	if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
+		si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_ARM64)
 	{
 		return build_arch = 64;
 	}