* init.cc (dll_entry): Call IsWow64Process with GetCurrentProcess

as process handle since hMainProc isn't initialized here.
This commit is contained in:
Corinna Vinschen 2005-09-27 17:44:29 +00:00
parent 357d430185
commit 91049bd9cd
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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 ();