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:
parent
4b770c6e78
commit
ddcab3b57d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user