]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/thrimpl.cpp
CheckValidator should not return false if no variable is associated for data storage...
[wxWidgets.git] / include / wx / thrimpl.cpp
index 54f6dd2bfde516728c0c8c6d785da50e8920580f..c1f13ec3d9f1998b97a93bd9ac3c65eb6cb6394b 100644 (file)
@@ -133,7 +133,12 @@ wxCondError wxConditionInternal::Wait()
     wxSemaError err = m_semaphore.Wait();
     m_mutex.Lock();
 
     wxSemaError err = m_semaphore.Wait();
     m_mutex.Lock();
 
-    return err == wxSEMA_NO_ERROR ? wxCOND_NO_ERROR : wxCOND_MISC_ERROR;
+    if ( err == wxSEMA_NO_ERROR )
+        return wxCOND_NO_ERROR;
+    else if ( err == wxSEMA_TIMEOUT )
+        return wxCOND_TIMEOUT;
+    else
+        return wxCOND_MISC_ERROR;
 }
 
 wxCondError wxConditionInternal::WaitTimeout(unsigned long milliseconds)
 }
 
 wxCondError wxConditionInternal::WaitTimeout(unsigned long milliseconds)