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:
parent
105f622310
commit
fed5bce4e3
@ -94,7 +94,7 @@ public:
|
||||
{
|
||||
Unlock();
|
||||
fLockable = lockable;
|
||||
fLocked = alreadyLocked;
|
||||
fLocked = (lockable && alreadyLocked);
|
||||
if (!alreadyLocked && lockIfNotLocked)
|
||||
Lock();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user