In 64-bit Windows, the OS runs x86 applications in emulation mode(aka WOW64). GetSystemInfo returns its emulated information; therefore iware::cpu::architecture() says the architecture is x86, although OS is 64-bit. This pull request resolves the issue by calling GetNativeSystemInfo instead of GetSystemInfo.
In 64-bit Windows, the OS runs x86 applications in emulation mode(aka WOW64).
GetSystemInfo
returns its emulated information; thereforeiware::cpu::architecture()
says the architecture is x86, although OS is 64-bit. This pull request resolves the issue by callingGetNativeSystemInfo
instead ofGetSystemInfo
.Refer to: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getnativesysteminfo