From 1c30ffc64a005d7276ddd9ae350ee41236bcb82c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 29 Sep 2016 15:47:53 -0400 Subject: [PATCH] Remove compare on "result >= WAIT_OBJECT_0" (Issue 311) --- wait.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wait.cpp b/wait.cpp index c342b71a..d7c26c01 100644 --- a/wait.cpp +++ b/wait.cpp @@ -372,7 +372,7 @@ bool WaitObjectContainer::Wait(unsigned long milliseconds) lastTime = timeAfterWait; } #endif - if (result >= WAIT_OBJECT_0 && result < WAIT_OBJECT_0 + m_handles.size()) + if (result < WAIT_OBJECT_0 + m_handles.size()) { if (result == m_lastResult) m_sameResultCount++;