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:
Jérôme Duval 2007-05-09 23:16:19 +00:00
parent eb89c947d3
commit 94f814b32c

View File

@ -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)