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
This commit is contained in:
@@ -317,7 +317,7 @@ BRoster::GetRunningAppInfo(team_id team, app_info *info) const
|
|||||||
{
|
{
|
||||||
status_t error = (info ? B_OK : B_BAD_VALUE);
|
status_t error = (info ? B_OK : B_BAD_VALUE);
|
||||||
if (error == B_OK && team < 0)
|
if (error == B_OK && team < 0)
|
||||||
error = B_ERROR;
|
error = B_BAD_TEAM_ID;
|
||||||
// compose the request message
|
// compose the request message
|
||||||
BMessage request(B_REG_GET_APP_INFO);
|
BMessage request(B_REG_GET_APP_INFO);
|
||||||
if (error == B_OK)
|
if (error == B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user