mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-05 10:42:33 +01:00
sysinfo: Fix architecture detection in AArch64 Windows
AArch64 should be detected as 64 bit OS.
This commit is contained in:
parent
7df34cdcb2
commit
a330c1cf4d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user