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);
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user