Mercurial > dwindows
changeset 1154:052f01522c53
dw_event_wait() was returning DW_ERROR_TIMEOUT in the wrong state on Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 13 Sep 2011 16:58:37 +0000 |
parents | f219ae018dd3 |
children | e6a2f57c0842 |
files | win/dw.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/win/dw.c Mon Sep 12 20:19:17 2011 +0000 +++ b/win/dw.c Tue Sep 13 16:58:37 2011 +0000 @@ -9256,8 +9256,10 @@ rc = WaitForSingleObject(eve, timeout); if(rc == WAIT_OBJECT_0) return DW_ERROR_NONE; + if(rc == WAIT_TIMEOUT) + return DW_ERROR_TIMEOUT; if(rc == WAIT_ABANDONED) - return DW_ERROR_TIMEOUT; + return DW_ERROR_NON_INIT; return DW_ERROR_GENERAL; }