also check for GetCurrentSpecifier status instead of just the index

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17821 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-06-13 13:40:30 +00:00
parent 4b770c6e78
commit ddcab3b57d

View File

@ -1477,8 +1477,8 @@ BLooper::resolve_specifier(BHandler* target, BMessage* msg)
return NULL;
// Get current specifier index (may change in ResolveSpecifier())
msg->GetCurrentSpecifier(&index);
} while (newTarget && newTarget != target && index >= 0);
err = msg->GetCurrentSpecifier(&index);
} while (newTarget && newTarget != target && !err && index >= 0);
return newTarget;
}