Fixed the return value in case of team ID < 0. R5 returns B_ERROR instead of B_BAD_TEAM_ID and so do we now.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@677 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2002-08-09 23:34:04 +00:00
parent 9e9f5a1ad3
commit ca3e9dba80
+1 -1
View File
@@ -317,7 +317,7 @@ BRoster::GetRunningAppInfo(team_id team, app_info *info) const
{
status_t error = (info ? B_OK : B_BAD_VALUE);
if (error == B_OK && team < 0)
error = B_BAD_TEAM_ID;
error = B_ERROR;
// compose the request message
BMessage request(B_REG_GET_APP_INFO);
if (error == B_OK)