aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-27 17:44:29 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-09-27 17:44:29 +0000
commit91049bd9cdbab9a4cb137938cbea58a5fbf61a85 (patch)
treeceb5855b0ff54be8e9be678894b291c03d884891 /winsup
parent357d430185b174a373d7e651f52f39ebf276dd2c (diff)
downloadnewlib-91049bd9cdbab9a4cb137938cbea58a5fbf61a85.zip
newlib-91049bd9cdbab9a4cb137938cbea58a5fbf61a85.tar.gz
newlib-91049bd9cdbab9a4cb137938cbea58a5fbf61a85.tar.bz2
* init.cc (dll_entry): Call IsWow64Process with GetCurrentProcess
as process handle since hMainProc isn't initialized here.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/init.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c29f841..59e1f02 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2005-09-27 Corinna Vinschen <corinna@vinschen.de>
+ * init.cc (dll_entry): Call IsWow64Process with GetCurrentProcess
+ as process handle since hMainProc isn't initialized here.
+
+2005-09-27 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Always
try IOCTL_DISK_GET_DRIVE_GEOMETRY_EX and
IOCTL_DISK_GET_PARTITION_INFO_EX ioctls first, to allow access to GPT
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc
index b00b7fe..478d831 100644
--- a/winsup/cygwin/init.cc
+++ b/winsup/cygwin/init.cc
@@ -157,7 +157,7 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
spawned by a genuine 64 bit process. If so, respawn. */
if (&is_wow64_proc >= (PBOOL) 0x400000
&& &is_wow64_proc <= (PBOOL) 0x10000000
- && IsWow64Process (hMainProc, &is_wow64_proc)
+ && IsWow64Process (GetCurrentProcess (), &is_wow64_proc)
&& is_wow64_proc)
respawn_wow64_process ();