[ui] fix possible truncation of short image path

* Closes #1233
* Also fix MinGW builds due to missing PROCESSOR_ARCHITECTURE_ARM64 define
This commit is contained in:
Pete Batard 2018-10-22 22:28:20 +01:00
parent 6109d91c38
commit 7757cab3c5
3 changed files with 10 additions and 7 deletions

View file

@ -239,7 +239,8 @@ int GetCpuArch(void)
return CPU_ARCH_X86_64;
case PROCESSOR_ARCHITECTURE_INTEL:
return CPU_ARCH_X86_64;
case PROCESSOR_ARCHITECTURE_ARM64:
// TODO: Set this back to PROCESSOR_ARCHITECTURE_ARM64 when the MinGW headers have it
case 12:
return CPU_ARCH_ARM_64;
case PROCESSOR_ARCHITECTURE_ARM:
return CPU_ARCH_ARM_32;