1
0
Fork 0

Simplify wow64 check

This commit is contained in:
Duncan Ogilvie 2022-01-03 03:55:57 +01:00
parent f0dc28020d
commit 56c6233baa
1 changed files with 3 additions and 3 deletions

View File

@ -224,13 +224,13 @@ bool cbDebugAttach(int argc, char* argv[])
dprintf(QT_TRANSLATE_NOOP("DBG", "Could not open process %X!\n"), DWORD(pid));
return false;
}
BOOL wow64 = false, mewow64 = false;
if(!IsWow64Process(hProcess, &wow64) || !IsWow64Process(GetCurrentProcess(), &mewow64))
BOOL wow64 = false, meow64 = false;
if(!IsWow64Process(hProcess, &wow64) || !IsWow64Process(GetCurrentProcess(), &meow64))
{
dputs(QT_TRANSLATE_NOOP("DBG", "IsWow64Process failed!"));
return false;
}
if((mewow64 && !wow64) || (!mewow64 && wow64))
if(meow64 != wow64)
{
#ifdef _WIN64
dputs(QT_TRANSLATE_NOOP("DBG", "Use x32dbg to debug this process!"));