From 8e9850670c3c83b85a0422d875ef1325f130b8a9 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Mon, 7 Feb 2011 11:33:57 +0000 Subject: [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 --- common/rfb/VNCSConnectionST.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/rfb/VNCSConnectionST.cxx') 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); -- cgit v1.2.3