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:
@@ -1663,7 +1663,11 @@ _get_team_usage_info(team_id id, int32 who, team_usage_info *info, size_t size)
|
|||||||
state = disable_interrupts();
|
state = disable_interrupts();
|
||||||
GRAB_TEAM_LOCK();
|
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) {
|
if (team == NULL) {
|
||||||
status = B_BAD_TEAM_ID;
|
status = B_BAD_TEAM_ID;
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user