mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 14:31:49 +00:00
sysinfo: Fix architecture detection in AArch64 Windows
AArch64 should be detected as 64 bit OS.
This commit is contained in:
1 parent
7df34cdcb2
commit
a330c1cf4d
1 file changed
+4
-2
@@ -84,7 +84,8 @@ sysinfo_get_cpu_arch (void)
|
|||||||
|
|
||||||
GetNativeSystemInfo (&si);
|
GetNativeSystemInfo (&si);
|
||||||
|
|
||||||
if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
|
if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
|
||||||
|
si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_ARM64)
|
||||||
{
|
{
|
||||||
return cpu_arch = 64;
|
return cpu_arch = 64;
|
||||||
}
|
}
|
||||||
@@ -106,7 +107,8 @@ sysinfo_get_build_arch (void)
|
|||||||
|
|
||||||
GetSystemInfo (&si);
|
GetSystemInfo (&si);
|
||||||
|
|
||||||
if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64)
|
if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 ||
|
||||||
|
si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_ARM64)
|
||||||
{
|
{
|
||||||
return build_arch = 64;
|
return build_arch = 64;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user