summaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCSConnectionST.cxx
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2011-02-07 11:33:57 +0000
committerAdam Tkac <atkac@redhat.com>2011-02-07 11:33:57 +0000
commit8e9850670c3c83b85a0422d875ef1325f130b8a9 (patch)
tree33beabb3721c1802af3b62cf8ccc80599db7aca4 /common/rfb/VNCSConnectionST.cxx
parentf16a421570cc6cbadff190b9c62a0e1a2ce10858 (diff)
downloadtigervnc-8e9850670c3c83b85a0422d875ef1325f130b8a9.tar.gz
tigervnc-8e9850670c3c83b85a0422d875ef1325f130b8a9.zip
[Bugfix] Use bitwise NOT instead of logical NOT when working with
VNCSConnectionST::accessRights. Fixes bug ID: 3158501. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4257 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/VNCSConnectionST.cxx')
-rw-r--r--common/rfb/VNCSConnectionST.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index efbc0081..e1c8cf86 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -804,10 +804,10 @@ void VNCSConnectionST::setStatus(int status)
accessRights = accessRights | AccessPtrEvents | AccessKeyEvents | AccessView;
break;
case 1:
- accessRights = accessRights & !(AccessPtrEvents | AccessKeyEvents) | AccessView;
+ accessRights = accessRights & ~(AccessPtrEvents | AccessKeyEvents) | AccessView;
break;
case 2:
- accessRights = accessRights & !(AccessPtrEvents | AccessKeyEvents | AccessView);
+ accessRights = accessRights & ~(AccessPtrEvents | AccessKeyEvents | AccessView);
break;
}
framebufferUpdateRequest(server->pb->getRect(), false);