* _get_next_thread_info() should be a bit more picky about its team needs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33741 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2470,6 +2470,9 @@ _get_next_thread_info(team_id teamID, int32 *_cookie, thread_info *info,
|
|||||||
else
|
else
|
||||||
team = team_get_team_struct_locked(teamID);
|
team = team_get_team_struct_locked(teamID);
|
||||||
|
|
||||||
|
if (team == NULL)
|
||||||
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
struct thread* thread = NULL;
|
struct thread* thread = NULL;
|
||||||
|
|
||||||
if (lastID == 0) {
|
if (lastID == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user