FIX: app: fix the crash issue on win-7 again

jira: no-jira
Change-Id: I96e713513270270db3abcfdd67792b0a3ac92619
This commit is contained in:
lane.wei 2025-04-16 19:33:29 +08:00 committed by Lane.Wei
parent a55520b5a2
commit caff5d9f38
1 changed files with 2 additions and 2 deletions

View File

@ -2786,8 +2786,8 @@ bool GUI_App::on_init_inner()
if (fnIsWow64Process2) {
USHORT processMachine = 0;
USHORT nativeMachine = 0;
if (IsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine)) {
if (nativeMachine == IMAGE_FILE_MACHINE_ARM64) {
if (fnIsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine)) {
if (nativeMachine == IMAGE_FILE_MACHINE_ARM64) {//IMAGE_FILE_MACHINE_ARM64
m_is_arm64 = true;
}
BOOST_LOG_TRIVIAL(info) << boost::format("processMachine architecture %1%, nativeMachine %2% m_is_arm64 %3%")%(int)(processMachine) %(int) nativeMachine %m_is_arm64;