Skip to content

Commit

Permalink
Fix wow64 support on windows 8
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Sep 11, 2023
1 parent 038429c commit a0cef03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,15 +916,8 @@ namespace netxs::os
{
if constexpr (sizeof(void*) == 4)
{
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0A00
auto isWow64Process = USHORT{};
auto nativeMachine = USHORT{};
::IsWow64Process2(::GetCurrentProcess(), &isWow64Process, &nativeMachine);
isWow64Process = !!isWow64Process && isWow64Process != nativeMachine;
#else
auto isWow64Process = BOOL{};
::IsWow64Process(::GetCurrentProcess(), &isWow64Process);
#endif
return !!isWow64Process;
}
else return faux;
Expand Down
6 changes: 5 additions & 1 deletion src/netxs/desktopio/terminal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6539,7 +6539,11 @@ namespace netxs::ui
}
unsync = true;
});
if (!done) proc();
if (!done)
{
if constexpr (debugmode) log("%%Unsynchronized output", prompt::term);
proc();
}
}
// term: Proceed terminal input.
void ondata(view data, bufferbase* target)
Expand Down

0 comments on commit a0cef03

Please sign in to comment.