From 740ed906267d4dfc97144578d214f93e118c0dcc Mon Sep 17 00:00:00 2001 From: Colin Riley Date: Tue, 3 Jun 2014 14:33:41 +0000 Subject: [PATCH] Windows fix: Condition::Wait returned failure when it actually succeeded (SleepConditionVariableCS returns non-zero for success) llvm-svn: 210104 --- lldb/source/Host/windows/Condition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Host/windows/Condition.cpp b/lldb/source/Host/windows/Condition.cpp index 72f0e38..2f16ad7 100644 --- a/lldb/source/Host/windows/Condition.cpp +++ b/lldb/source/Host/windows/Condition.cpp @@ -93,6 +93,6 @@ Condition::Wait (Mutex &mutex, const TimeValue *abstime, bool *timed_out) *timed_out = false; } - return err != 0; + return err == 0; } -- 2.7.4