GetToken() is supposed to always set the _option argument - not only on success.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15032 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
58e201cb00
commit
17de8ec214
@ -92,8 +92,10 @@ BTokenSpace::GetToken(int32 token, int16 type, void** _object,
|
|||||||
{
|
{
|
||||||
BAutolock locker(const_cast<BTokenSpace&>(*this));
|
BAutolock locker(const_cast<BTokenSpace&>(*this));
|
||||||
|
|
||||||
if (token < 1)
|
if (token < 1) {
|
||||||
|
*_object = NULL;
|
||||||
return B_ENTRY_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
TokenMap::const_iterator iterator = fTokenMap.find(token);
|
TokenMap::const_iterator iterator = fTokenMap.find(token);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user