Commit 76d92298 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp/tests: Fix process kind detection on old Windows machines.

parent b337c5b1
......@@ -571,12 +571,14 @@ static enum process_kind get_process_kind_internal(HANDLE process)
{
USHORT m1, m2;
if (!pIsWow64Process2)
if (!pIsWow64Process2) /* only happens on old Win 8 and early win 1064v1507 */
{
BOOL is_wow64;
return is_win64 ? PCSKIND_64BIT :
IsWow64Process(process, &is_wow64) && is_wow64 ? PCSKIND_WOW64 :
PCSKIND_32BIT;
if (!strcmp(winetest_platform, "wine") || !IsWow64Process(process, &is_wow64))
return PCSKIND_ERROR;
if (is_wow64) return PCSKIND_WOW64;
return is_win64 ? PCSKIND_64BIT : PCSKIND_32BIT;
}
if (!pIsWow64Process2(process, &m1, &m2)) return PCSKIND_ERROR;
if (m1 == IMAGE_FILE_MACHINE_UNKNOWN && get_machine_bitness(m2) == 32) return PCSKIND_32BIT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment