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
This commit is contained in:
parent
3b04471572
commit
92180c47a3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user