fHandlerToken can be equal to B_PREFERRED_TOKEN
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21096 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eb89c947d3
commit
94f814b32c
@ -184,7 +184,9 @@ BHandler *
|
||||
BMessenger::Target(BLooper** _looper) const
|
||||
{
|
||||
BHandler *handler = NULL;
|
||||
if (IsTargetLocal() && fHandlerToken > B_NULL_TOKEN) {
|
||||
if (IsTargetLocal()
|
||||
&& (fHandlerToken > B_NULL_TOKEN
|
||||
|| fHandlerToken == B_PREFERRED_TOKEN)) {
|
||||
gDefaultTokens.GetToken(fHandlerToken, B_HANDLER_TOKEN,
|
||||
(void**)&handler);
|
||||
if (_looper)
|
||||
|
Loading…
Reference in New Issue
Block a user