Remove handling for Windows versions that are no longer supported
This commit is contained in:
parent
d2fa488979
commit
f5f06ae44e
5 changed files with 19 additions and 37 deletions
|
|
@ -57,9 +57,8 @@ SystemProperties::SystemProperties()
|
|||
{
|
||||
USHORT processArch, machineArch;
|
||||
|
||||
// Use IsWow64Process2 on TH2 and later, because it supports ARM64
|
||||
auto fnIsWow64Process2 = (decltype(IsWow64Process2)*)GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsWow64Process2");
|
||||
if (fnIsWow64Process2 != nullptr && fnIsWow64Process2(GetCurrentProcess(), &processArch, &machineArch)) {
|
||||
// Use IsWow64Process2() because it doesn't lie on ARM64
|
||||
if (IsWow64Process2(GetCurrentProcess(), &processArch, &machineArch)) {
|
||||
switch (machineArch) {
|
||||
case IMAGE_FILE_MACHINE_I386:
|
||||
nativeArch = "i386";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue