We introduced the new constant B_CURRENT_TEAM for this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
efc497d596
commit
4d00c5e1ea
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@ -161,7 +161,7 @@ _get_next_image_info(team_id teamID, int32 *cookie, image_info *info, size_t siz
|
||||
state = disable_interrupts();
|
||||
GRAB_TEAM_LOCK();
|
||||
|
||||
if (teamID == 0)
|
||||
if (teamID == B_CURRENT_TEAM)
|
||||
team = thread_get_current_thread()->team;
|
||||
else
|
||||
team = team_get_team_struct_locked(teamID);
|
||||
|
Loading…
Reference in New Issue
Block a user