diff options
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 59e59ccd0..59a0cae30 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -150,13 +150,13 @@ dll_entry (HANDLE h, DWORD reason, void *static_load) dynamically_loaded = (static_load == NULL); /* Is the stack at an unusual address? This is, an address which - is in the usual space occupied by the process image, but below + is in the usual space occupied by the process image, but below the auto load address of DLLs? Check if we're running in WOW64 on a 64 bit machine *and* are spawned by a genuine 64 bit process. If so, respawn. */ if (&is_wow64_proc >= (PBOOL) 0x400000 - && &is_wow64_proc <= (PBOOL) 0x10000000 - && IsWow64Process (GetCurrentProcess (), &is_wow64_proc) + && &is_wow64_proc <= (PBOOL) 0x10000000 + && IsWow64Process (GetCurrentProcess (), &is_wow64_proc) && is_wow64_proc) respawn_wow64_process (); |