From 4b770c6e785961f6af02f94476228e11b7c8d463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 13 Jun 2006 13:34:55 +0000 Subject: [PATCH] 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 --- src/kits/app/Message.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kits/app/Message.cpp b/src/kits/app/Message.cpp index 79ea103209..71e38cc552 100644 --- a/src/kits/app/Message.cpp +++ b/src/kits/app/Message.cpp @@ -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;