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
This commit is contained in:
parent
139655dd9a
commit
4b25c48853
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user