From 8f2299359025ac37caefe977d56f0ca31820074e Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 14 Apr 2005 15:45:38 +0000 Subject: [PATCH] Return timeout, not success on Win32 if a timeout occurs. --- src/odoors/ODInQue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/odoors/ODInQue.c b/src/odoors/ODInQue.c index a2c0a7d40c..90349a297f 100644 --- a/src/odoors/ODInQue.c +++ b/src/odoors/ODInQue.c @@ -315,7 +315,8 @@ tODResult ODInQueueGetNextEvent(tODInQueueHandle hInQueue, /* this thread to be blocked until an event is added to the queue, if it */ /* is currently empty. */ - ODSemaphoreDown(pInputQueueInfo->hItemCountSemaphore, Timeout); + if(ODSemaphoreDown(pInputQueueInfo->hItemCountSemaphore, Timeout)==kODRCTimeout) + return(kODRCTimeout); #else /* !OD_MULTITHREADED */ -- GitLab