sysinfo: Fix architecture detection in AArch64 Windows

AArch64 should be detected as 64 bit OS.
This commit is contained in:
Biswapriyo Nath 2022-01-21 14:05:09 +05:30 committed by Patrick
parent 7df34cdcb2
commit a330c1cf4d

View File

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