Windows: Fix wrong detection of ARM architecture

This commit is contained in:
Mounir IDRASSI 2021-08-02 01:16:37 +02:00
parent 17a3c3dbe0
commit a505f3d98b
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -10855,7 +10855,7 @@ BOOL IsARM()
USHORT processMachine, nativeMachine; USHORT processMachine, nativeMachine;
if (fnIsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine)) if (fnIsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine))
{ {
if (IMAGE_FILE_MACHINE_ARM64 == nativeMachine || IMAGE_FILE_MACHINE_AMD64 == nativeMachine || IMAGE_FILE_MACHINE_IA64 == nativeMachine || IMAGE_FILE_MACHINE_ALPHA64 == nativeMachine) if (IMAGE_FILE_MACHINE_ARM64 == nativeMachine || IMAGE_FILE_MACHINE_ARM == nativeMachine)
isARM = TRUE; isARM = TRUE;
else else
isARM = FALSE; isARM = FALSE;