Merge pull request #406 from mstorsjo/use-proper-define

Use the windows INFINITE define instead of manually casting -1 to uint32_t
This commit is contained in:
volvet 2014-03-04 20:57:57 +08:00
commit bc9ee5b145

View File

@ -123,7 +123,7 @@ WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitSingleBlocking (uint32_t nCount,
}
WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitAllBlocking (uint32_t nCount, WELS_EVENT* event_list) {
return WaitForMultipleObjects (nCount, event_list, TRUE, (uint32_t) - 1);
return WaitForMultipleObjects (nCount, event_list, TRUE, INFINITE);
}
WELS_THREAD_ERROR_CODE WelsEventDestroy (WELS_EVENT* event) {