Fix BMessage::GetInfo() return value check

Since B_OK is 0, the change doesn't affect the semantics.
This commit is contained in:
Ingo Weinhold 2013-04-15 01:36:59 +02:00
parent 88f22c9768
commit 4210ed011a
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ BDaemonClient::_ExtractPackageInfoSet(const BMessage& message,
// get the number of items
type_code type;
int32 count;
if (message.GetInfo(field, &type, &count)) {
if (message.GetInfo(field, &type, &count) != B_OK) {
// the field is missing
return B_OK;
}

View File

@ -2033,7 +2033,7 @@ BPackageInfo::_ExtractStringList(BMessage* archive, const char* field,
// get the number of items
type_code type;
int32 count;
if (archive->GetInfo(field, &type, &count)) {
if (archive->GetInfo(field, &type, &count) != B_OK) {
// the field is missing
return B_OK;
}
@ -2071,7 +2071,7 @@ BPackageInfo::_ExtractResolvables(BMessage* archive, const char* field,
// get the number of items
type_code type;
int32 count;
if (archive->GetInfo(nameField, &type, &count)) {
if (archive->GetInfo(nameField, &type, &count) != B_OK) {
// the field is missing
return B_OK;
}
@ -2130,7 +2130,7 @@ BPackageInfo::_ExtractResolvableExpressions(BMessage* archive,
// get the number of items
type_code type;
int32 count;
if (archive->GetInfo(nameField, &type, &count)) {
if (archive->GetInfo(nameField, &type, &count) != B_OK) {
// the field is missing
return B_OK;
}