Added support for get_next_image_info() with team ID == 0, which means the current team.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10727 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8afbcade1f
commit
2397da28a0
@ -161,7 +161,10 @@ _get_next_image_info(team_id teamID, int32 *cookie, image_info *info, size_t siz
|
||||
state = disable_interrupts();
|
||||
GRAB_TEAM_LOCK();
|
||||
|
||||
team = team_get_team_struct_locked(teamID);
|
||||
if (teamID == 0)
|
||||
team = thread_get_current_thread()->team;
|
||||
else
|
||||
team = team_get_team_struct_locked(teamID);
|
||||
if (team) {
|
||||
struct image *image = NULL;
|
||||
int32 count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user