Made SetTo() deal with the lockable == NULL, alreadyLocked == true

correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22142 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-09-01 18:00:22 +00:00
parent 105f622310
commit fed5bce4e3

View File

@ -94,7 +94,7 @@ public:
{
Unlock();
fLockable = lockable;
fLocked = alreadyLocked;
fLocked = (lockable && alreadyLocked);
if (!alreadyLocked && lockIfNotLocked)
Lock();
}