reverted to 17808, BLooper::resolve_specifier should be fixed instead

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

View File

@ -1319,13 +1319,14 @@ BMessage::GetCurrentSpecifier(int32 *index, BMessage *specifier, int32 *what,
const char **property) const
{
DEBUG_FUNCTION_ENTER;
if (!(fHeader->flags & MESSAGE_FLAG_WAS_DELIVERED))
if (fHeader->current_specifier < 0
|| !(fHeader->flags & MESSAGE_FLAG_WAS_DELIVERED))
return B_BAD_SCRIPT_SYNTAX;
if (index)
*index = fHeader->current_specifier;
if (specifier && fHeader->current_specifier >= 0) {
if (specifier) {
if (FindMessage(B_SPECIFIER_ENTRY, fHeader->current_specifier,
specifier) < B_OK)
return B_BAD_SCRIPT_SYNTAX;