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:
@@ -161,6 +161,9 @@ _get_next_image_info(team_id teamID, int32 *cookie, image_info *info, size_t siz
|
|||||||
state = disable_interrupts();
|
state = disable_interrupts();
|
||||||
GRAB_TEAM_LOCK();
|
GRAB_TEAM_LOCK();
|
||||||
|
|
||||||
|
if (teamID == 0)
|
||||||
|
team = thread_get_current_thread()->team;
|
||||||
|
else
|
||||||
team = team_get_team_struct_locked(teamID);
|
team = team_get_team_struct_locked(teamID);
|
||||||
if (team) {
|
if (team) {
|
||||||
struct image *image = NULL;
|
struct image *image = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user