aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/EventManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win/rfb_win32/EventManager.cxx')
-rw-r--r--win/rfb_win32/EventManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/EventManager.cxx b/win/rfb_win32/EventManager.cxx
index 9e08b793..401a8ee2 100644
--- a/win/rfb_win32/EventManager.cxx
+++ b/win/rfb_win32/EventManager.cxx
@@ -95,7 +95,7 @@ BOOL EventManager::getMessage(MSG* msg, HWND hwnd, UINT minMsg, UINT maxMsg) {
} else
return GetMessage(msg, hwnd, minMsg, maxMsg);
- if ((result >= WAIT_OBJECT_0) && (result < (WAIT_OBJECT_0 + eventCount))) {
+ if (result < (WAIT_OBJECT_0 + eventCount)) {
// - An event was set - call the handler
int index = result - WAIT_OBJECT_0;
handlers[index]->processEvent(events[index]);