Remove assert on "dwResult >= WAIT_OBJECT_0" (Issue 311)

pull/326/head
Jeffrey Walton 2016-09-29 15:15:34 -04:00
parent afe391571b
commit 5fc3e8a395
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

@ -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<m_threads.size(); i++)