Skip to content
Snippets Groups Projects
Commit 0c4aa19b authored by deuce's avatar deuce
Browse files

Return timed out if wait fails, not if wait returns timeout.

parent 8f229935
No related branches found
No related tags found
No related merge requests found
......@@ -494,7 +494,7 @@ tODResult ODSemaphoreDown(tODSemaphoreHandle hSemaphore, tODMilliSec Timeout)
ASSERT(hSemaphore != NULL);
#ifdef ODPLAT_WIN32
if(WaitForSingleObject(hSemaphore, Timeout) == WAIT_FAILED)
if(WaitForSingleObject(hSemaphore, Timeout) != WAIT_OBJECT_0)
{
return(kODRCTimeout);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment