Changed certain B_BAD_VALUE errors to more applicable B_BAD_REPLY error code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1717 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4f935768b7
commit
e106754a4e
@ -322,7 +322,7 @@ BMimeType::Install()
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -358,7 +358,7 @@ BMimeType::Delete()
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -631,7 +631,7 @@ BMimeType::GetSupportingApps(BMessage *signatures) const
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -705,7 +705,7 @@ BMimeType::SetPreferredApp(const char *signature, app_verb verb)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -781,7 +781,7 @@ BMimeType::SetAttrInfo(const BMessage *info)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -838,7 +838,7 @@ BMimeType::SetFileExtensions(const BMessage *extensions)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -880,7 +880,7 @@ BMimeType::SetShortDescription(const char *description)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -922,7 +922,7 @@ BMimeType::SetLongDescription(const char *description)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -958,7 +958,7 @@ BMimeType::GetInstalledSupertypes(BMessage *supertypes)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1017,7 +1017,7 @@ BMimeType::GetInstalledTypes(const char *supertype, BMessage *types)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1165,7 +1165,7 @@ BMimeType::SetAppHint(const entry_ref *ref)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1281,7 +1281,7 @@ BMimeType::SetIconForType(const char *type, const BBitmap *icon, icon_size which
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1347,7 +1347,7 @@ BMimeType::SetSnifferRule(const char *rule)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1476,7 +1476,7 @@ BMimeType::GuessMimeType(const entry_ref *file, BMimeType *type)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1514,7 +1514,7 @@ BMimeType::GuessMimeType(const void *buffer, int32 length, BMimeType *type)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1555,7 +1555,7 @@ BMimeType::GuessMimeType(const char *filename, BMimeType *type)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1589,7 +1589,7 @@ BMimeType::StartWatching(BMessenger target)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1618,7 +1618,7 @@ BMimeType::StopWatching(BMessenger target)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1798,7 +1798,7 @@ BMimeType::SetSupportedTypes(const BMessage *types, bool fullSync)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
@ -1836,7 +1836,7 @@ BMimeType::GetAssociatedTypes(const char *extension, BMessage *types)
|
||||
if (!err)
|
||||
err = _send_to_roster_(&msg, &reply, true);
|
||||
if (!err)
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_VALUE;
|
||||
err = reply.what == B_REG_RESULT ? B_OK : B_BAD_REPLY;
|
||||
if (!err)
|
||||
err = reply.FindInt32("result", &result);
|
||||
if (!err)
|
||||
|
Loading…
Reference in New Issue
Block a user