Re: Incorrect use of IsWow64Process in Cygwin sources

2008-04-27 Thread Corinna Vinschen
On Apr 27 12:16, Cesar Strauss wrote: > If I understood correctly, the "else" block is meant to be executed on 32 > bit systems, so that those flags are reset on Vista 32. > > But you are testing the return value of IsWow64Process, which is only an > indication that the function succeeded. [...]

Incorrect use of IsWow64Process in Cygwin sources

2008-04-27 Thread Cesar Strauss
Please consider the following snippet from src/winsup/cygwin/wincap.cc (wincapc::init): BOOL is_wow64_proc = FALSE; if (IsWow64Process (GetCurrentProcess (), &is_wow64_proc)) wow64 = is_wow64_proc; else { ((wincaps *)this->caps)->needs_count_in_si_lpres2 = false; ((winca