Drop wow64_has_secondary_stack flag

This commit is contained in:
Corinna Vinschen
2015-12-15 15:48:44 +01:00
parent 105f79b489
commit bd4339e2a2
7 changed files with 4 additions and 297 deletions

View File

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