From bbab11ba30a8e0dd6995aaee550bb8006eea51a1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 9 Aug 2002 23:50:19 +0000 Subject: [PATCH] Changed BRoster::GetRunningAppInfo() return value back to B_BAD_TEAM_ID in case the team ID is < 0. I thought R5 returns B_ERROR, but it does only for -1, otherwise it also returns B_BAD_TEAM_ID. We don't mimic this slightly insane behavior. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@680 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Roster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Roster.cpp b/src/kits/app/Roster.cpp index 009d0a0921..4ebfd05f04 100644 --- a/src/kits/app/Roster.cpp +++ b/src/kits/app/Roster.cpp @@ -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_ERROR; + error = B_BAD_TEAM_ID; // compose the request message BMessage request(B_REG_GET_APP_INFO); if (error == B_OK)