# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1315933117 0 # Node ID 052f01522c53cdbcc236c8d61d4579d7c8cb89fe # Parent f219ae018dd342a01445d5b0b4d6aeaf5e547145 dw_event_wait() was returning DW_ERROR_TIMEOUT in the wrong state on Windows. diff -r f219ae018dd3 -r 052f01522c53 win/dw.c --- 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; }