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);
|
BPropertyInfo propertyInfo(sPropertyInfo);
|
||||||
if (propertyInfo.FindMatch(message, index, specifier, what, property)
|
if (propertyInfo.FindMatch(message, index, specifier, what, property)
|
||||||
< propertyInfo.CountProperties())
|
!= B_ERROR)
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
return BWindow::ResolveSpecifier(message, index, specifier, what, property);
|
return BWindow::ResolveSpecifier(message, index, specifier, what, property);
|
||||||
|
|||||||
Reference in New Issue
Block a user