From 5fc3e8a395b7f40834e40b248d91215f02ced4c6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 29 Sep 2016 15:15:34 -0400 Subject: [PATCH] Remove assert on "dwResult >= WAIT_OBJECT_0" (Issue 311) --- wait.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wait.cpp b/wait.cpp index 3c3195c9..c342b71a 100644 --- a/wait.cpp +++ b/wait.cpp @@ -157,10 +157,10 @@ WaitObjectContainer::~WaitObjectContainer() // Enterprise Analysis warning #if defined(USE_WINDOWS8_API) DWORD dwResult = ::WaitForMultipleObjectsEx((DWORD)m_threads.size(), threadHandles, TRUE, INFINITE, FALSE); - CRYPTOPP_ASSERT((dwResult >= WAIT_OBJECT_0) && (dwResult < (DWORD)m_threads.size())); + CRYPTOPP_ASSERT(dwResult < (DWORD)m_threads.size()); #else DWORD dwResult = ::WaitForMultipleObjects((DWORD)m_threads.size(), threadHandles, TRUE, INFINITE); - CRYPTOPP_ASSERT((dwResult >= WAIT_OBJECT_0) && (dwResult < (DWORD)m_threads.size())); + CRYPTOPP_ASSERT(dwResult < (DWORD)m_threads.size()); #endif for (i=0; i