Revision: 4257
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4257&view=rev
Author:   atkac
Date:     2011-02-07 11:33:57 +0000 (Mon, 07 Feb 2011)

Log Message:
-----------
[Bugfix] Use bitwise NOT instead of logical NOT when working with
VNCSConnectionST::accessRights.

Fixes bug ID: 3158501.

Modified Paths:
--------------
    trunk/common/rfb/VNCSConnectionST.cxx

Modified: trunk/common/rfb/VNCSConnectionST.cxx
===================================================================
--- trunk/common/rfb/VNCSConnectionST.cxx       2011-02-07 10:47:07 UTC (rev 
4256)
+++ trunk/common/rfb/VNCSConnectionST.cxx       2011-02-07 11:33:57 UTC (rev 
4257)
@@ -804,10 +804,10 @@
     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);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to