https://git.reactos.org/?p=reactos.git;a=commitdiff;h=58853297dc98ddfceac6f…
commit 58853297dc98ddfceac6f0ebc28522072b453b82
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Sep 16 14:42:43 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Sep 16 14:42:43 2018 +0200
[KERNEL32_VISTA] Make SleepConditionVariableCS fail when it times out
This fixes a few newly added winetests.
---
dll/win32/kernel32_vista/sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/kernel32_vista/sync.c b/dll/win32/kernel32_vista/sync.c
index 1f13206445..57fc81a333 100644
--- a/dll/win32/kernel32_vista/sync.c
+++ b/dll/win32/kernel32_vista/sync.c
@@ -108,7 +108,7 @@ SleepConditionVariableCS(PCONDITION_VARIABLE ConditionVariable,
PCRITICAL_SECTIO
LARGE_INTEGER Time;
Status = RtlSleepConditionVariableCS(ConditionVariable,
(PRTL_CRITICAL_SECTION)CriticalSection, GetNtTimeout(&Time, Timeout));
- if (!NT_SUCCESS(Status))
+ if (!NT_SUCCESS(Status) || Status == STATUS_TIMEOUT)
{
SetLastError(RtlNtStatusToDosError(Status));
return FALSE;