Cygwin: drop a few minor references to WOW64

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-03-07 13:11:34 +01:00
parent 974163bc18
commit d4df9c6de1
4 changed files with 4 additions and 8 deletions

View File

@ -448,10 +448,7 @@ fhandler_registry::set_name (path_conv &in_pc)
prefix_len += 2; prefix_len += 2;
} }
else if (strncasematch (in_pc.get_posix (), "/proc/registry64", 16)) else if (strncasematch (in_pc.get_posix (), "/proc/registry64", 16))
{ prefix_len += 2;
wow64 = KEY_WOW64_64KEY;
prefix_len += 2;
}
fhandler_base::set_name (in_pc); fhandler_base::set_name (in_pc);
} }

View File

@ -1109,7 +1109,7 @@ typedef struct _PROCESS_BASIC_INFORMATION
NTSTATUS ExitStatus; NTSTATUS ExitStatus;
PPEB PebBaseAddress; PPEB PebBaseAddress;
KAFFINITY AffinityMask; KAFFINITY AffinityMask;
KPRIORITY BasePriority; /* !!!Broken on WOW64!!! */ KPRIORITY BasePriority;
ULONG_PTR UniqueProcessId; ULONG_PTR UniqueProcessId;
ULONG_PTR InheritedFromUniqueProcessId; ULONG_PTR InheritedFromUniqueProcessId;
} PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION; } PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION;

View File

@ -4765,8 +4765,7 @@ find_fast_cwd ()
bool warn = 1; bool warn = 1;
USHORT emulated, hosted; USHORT emulated, hosted;
/* Check if we're running in WOW64 on ARM64. Check on 64 bit as well, /* Check if we're running in WOW64 on ARM64 emulating AMD64. Skip
given that ARM64 Windows 10 provides a x86_64 emulation soon. Skip
warning as long as there's no solution for finding the FAST_CWD warning as long as there's no solution for finding the FAST_CWD
pointer on that system. */ pointer on that system. */
if (IsWow64Process2 (GetCurrentProcess (), &emulated, &hosted) if (IsWow64Process2 (GetCurrentProcess (), &emulated, &hosted)

View File

@ -1423,7 +1423,7 @@ cygheap_domain_info::init ()
even if no NFS name mapping is configured on the machine. Fortunately, even if no NFS name mapping is configured on the machine. Fortunately,
the posixAccount and posixGroup schemas are already available in the the posixAccount and posixGroup schemas are already available in the
Active Directory default setup. */ Active Directory default setup. */
reg_key reg (HKEY_LOCAL_MACHINE, KEY_READ | KEY_WOW64_64KEY, reg_key reg (HKEY_LOCAL_MACHINE, KEY_READ,
L"SOFTWARE", L"Microsoft", L"ServicesForNFS", NULL); L"SOFTWARE", L"Microsoft", L"ServicesForNFS", NULL);
if (!reg.error ()) if (!reg.error ())
{ {