aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:39:37 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:39:37 +0100
commit7728be27d08e7ae362a15a2affb1f502d439b561 (patch)
treebae3d8008ef6126b091cfa096621b43a11812a50 /win/rfb_win32
parentb1cd6ca8f0c6c77ec66cba47004137297ae020d6 (diff)
downloadtigervnc-7728be27d08e7ae362a15a2affb1f502d439b561.tar.gz
tigervnc-7728be27d08e7ae362a15a2affb1f502d439b561.zip
Add extra parentheses to avoid and/or priority ambiguity
Diffstat (limited to 'win/rfb_win32')
-rw-r--r--win/rfb_win32/WMCursor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/rfb_win32/WMCursor.cxx b/win/rfb_win32/WMCursor.cxx
index 4d696cbc..fa158335 100644
--- a/win/rfb_win32/WMCursor.cxx
+++ b/win/rfb_win32/WMCursor.cxx
@@ -49,7 +49,8 @@ WMCursor::WMCursor() : hooks(0), use_getCursorInfo(false), cursor(0) {
#ifdef RFB_HAVE_GETCURSORINFO
// Check the OS version
bool is_win98 = (osVersion.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) &&
- (osVersion.dwMajorVersion > 4) || ((osVersion.dwMajorVersion == 4) && (osVersion.dwMinorVersion > 0));
+ ((osVersion.dwMajorVersion > 4) ||
+ ((osVersion.dwMajorVersion == 4) && (osVersion.dwMinorVersion > 0)));
bool is_win2K = (osVersion.dwPlatformId == VER_PLATFORM_WIN32_NT) && (osVersion.dwMajorVersion >= 5);
// Use GetCursorInfo if OS version is sufficient