* _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:
Axel Dörfler 2009-10-23 01:15:55 +00:00
parent 3db9c51942
commit 6390c0ca80

View File

@ -2470,6 +2470,9 @@ _get_next_thread_info(team_id teamID, int32 *_cookie, thread_info *info,
else
team = team_get_team_struct_locked(teamID);
if (team == NULL)
return B_BAD_VALUE;
struct thread* thread = NULL;
if (lastID == 0) {