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