MediaPlayer: Compare return value of FindMatch against B_ERROR.
Thanks Rene for the review!
This commit is contained in:
@@ -1318,7 +1318,7 @@ MainWin::ResolveSpecifier(BMessage* message, int32 index, BMessage* specifier,
|
||||
{
|
||||
BPropertyInfo propertyInfo(sPropertyInfo);
|
||||
if (propertyInfo.FindMatch(message, index, specifier, what, property)
|
||||
< propertyInfo.CountProperties())
|
||||
!= B_ERROR)
|
||||
return this;
|
||||
|
||||
return BWindow::ResolveSpecifier(message, index, specifier, what, property);
|
||||
|
||||
Reference in New Issue
Block a user