Support for B_CURRENT_TEAM was missing from get_team_usage_info().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10258 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-11-26 16:34:32 +00:00
parent a09c4553a6
commit b9ead42463
+5 -1
View File
@@ -1663,7 +1663,11 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size)
state = disable_interrupts();
GRAB_TEAM_LOCK();
team = team_get_team_struct_locked(id);
if (id == B_CURRENT_TEAM)
team = thread_get_current_thread()->team;
else
team = team_get_team_struct_locked(id);
if (team == NULL) {
status = B_BAD_TEAM_ID;
goto out;