diff options
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index d1b342886..7285e3db6 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -54,14 +54,9 @@ munge_threadfunc () { char *threadfunc = NULL; - /* This call to NtQueryInformationThread crashes under WOW64 on - 64 bit XP and Server 2003. */ - if (wincap.wow64_has_secondary_stack ()) - threadfunc = ebp[threadfunc_ix[0]]; - else - NtQueryInformationThread (NtCurrentThread (), - ThreadQuerySetWin32StartAddress, - &threadfunc, sizeof threadfunc, NULL); + NtQueryInformationThread (NtCurrentThread (), + ThreadQuerySetWin32StartAddress, + &threadfunc, sizeof threadfunc, NULL); if (!search_for || threadfunc == search_for) { search_for = NULL; |