From 92180c47a3c27b733d05aeef2a841e0eb49e33df Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 26 Jul 2002 19:51:49 +0000 Subject: [PATCH] Get the current team not using fTaskID, the looper thread, but find_thread(NULL) instead. In InitData() the thread has not been spawned yet. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@456 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Looper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index aab01f2976..853e952c21 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -1005,7 +1005,7 @@ void BLooper::InitData() if (sTeamID == -1) { thread_info info; - get_thread_info(fTaskID,&info); + get_thread_info(find_thread(NULL), &info); sTeamID = info.team; }