From a31e05bb68356270b1c0d05d684c62a9b29f51c3 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 10 Jan 2018 13:39:37 -0500 Subject: [PATCH] MediaPlayer: Compare return value of FindMatch against B_ERROR. Thanks Rene for the review! --- src/apps/mediaplayer/MainWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index ce5e061e37..ac9270bd0b 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -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);