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:
@@ -1005,7 +1005,7 @@ void BLooper::InitData()
|
|||||||
if (sTeamID == -1)
|
if (sTeamID == -1)
|
||||||
{
|
{
|
||||||
thread_info info;
|
thread_info info;
|
||||||
get_thread_info(fTaskID,&info);
|
get_thread_info(find_thread(NULL), &info);
|
||||||
sTeamID = info.team;
|
sTeamID = info.team;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user