From 4b25c4885355d944d7befc2da5388b5746873db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 12 Jun 2006 23:40:16 +0000 Subject: [PATCH] BMessage::GetCurrentSpecifier returns B_OK if current specifier is negative git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17809 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Message.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kits/app/Message.cpp b/src/kits/app/Message.cpp index 71e38cc552..79ea103209 100644 --- a/src/kits/app/Message.cpp +++ b/src/kits/app/Message.cpp @@ -1319,14 +1319,13 @@ BMessage::GetCurrentSpecifier(int32 *index, BMessage *specifier, int32 *what, const char **property) const { DEBUG_FUNCTION_ENTER; - if (fHeader->current_specifier < 0 - || !(fHeader->flags & MESSAGE_FLAG_WAS_DELIVERED)) + if (!(fHeader->flags & MESSAGE_FLAG_WAS_DELIVERED)) return B_BAD_SCRIPT_SYNTAX; if (index) *index = fHeader->current_specifier; - if (specifier) { + if (specifier && fHeader->current_specifier >= 0) { if (FindMessage(B_SPECIFIER_ENTRY, fHeader->current_specifier, specifier) < B_OK) return B_BAD_SCRIPT_SYNTAX;