Fix BMessage::GetInfo() return value check
Since B_OK is 0, the change doesn't affect the semantics.
This commit is contained in:
parent
88f22c9768
commit
4210ed011a
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user