diff options
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r-- | winsup/cygwin/init.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc index 9dabf5f5a..e4ad59f3a 100644 --- a/winsup/cygwin/init.cc +++ b/winsup/cygwin/init.cc @@ -42,7 +42,7 @@ munge_threadfunc () if (!threadfunc_ix[0]) { char **peb; - char **top = (char **) _tlsbase; + char **top = (char **) NtCurrentTeb()->Tib.StackBase; for (peb = ebp, i = 0; peb < top && i < 7; peb++) if (*peb == search_for) threadfunc_ix[i++] = peb - ebp; |