mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
FIX: app: fix the crash issue on win-7 again
jira: no-jira Change-Id: I96e713513270270db3abcfdd67792b0a3ac92619 (cherry picked from commit caff5d9f38cdb962ca4069f8b0b5696d140aac6d)
This commit is contained in:
@@ -2302,8 +2302,8 @@ bool GUI_App::on_init_inner()
|
|||||||
if (fnIsWow64Process2) {
|
if (fnIsWow64Process2) {
|
||||||
USHORT processMachine = 0;
|
USHORT processMachine = 0;
|
||||||
USHORT nativeMachine = 0;
|
USHORT nativeMachine = 0;
|
||||||
if (IsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine)) {
|
if (fnIsWow64Process2(GetCurrentProcess(), &processMachine, &nativeMachine)) {
|
||||||
if (nativeMachine == IMAGE_FILE_MACHINE_ARM64) {
|
if (nativeMachine == IMAGE_FILE_MACHINE_ARM64) {//IMAGE_FILE_MACHINE_ARM64
|
||||||
m_is_arm64 = true;
|
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;
|
BOOST_LOG_TRIVIAL(info) << boost::format("processMachine architecture %1%, nativeMachine %2% m_is_arm64 %3%")%(int)(processMachine) %(int) nativeMachine %m_is_arm64;
|
||||||
|
|||||||
Reference in New Issue
Block a user