mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-26 01:28:37 -07: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:
parent
85bce2ac33
commit
a67436ee7e
1 changed files with 2 additions and 2 deletions
|
|
@ -2302,8 +2302,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue