https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8c5b0fbff3ffa86a435e2…
commit 8c5b0fbff3ffa86a435e28d11d7fbfb54e6f421c
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Sep 16 14:50:01 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Sep 16 14:50:01 2018 +0200
[KERNEL32_VISTA] Make SleepConditionVariableSRW 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 57fc81a333..d8be19c52d 100644
--- a/dll/win32/kernel32_vista/sync.c
+++ b/dll/win32/kernel32_vista/sync.c
@@ -124,7 +124,7 @@ SleepConditionVariableSRW(PCONDITION_VARIABLE ConditionVariable,
PSRWLOCK Lock,
LARGE_INTEGER Time;
Status = RtlSleepConditionVariableSRW(ConditionVariable, Lock,
GetNtTimeout(&Time, Timeout), Flags);
- if (!NT_SUCCESS(Status))
+ if (!NT_SUCCESS(Status) || Status == STATUS_TIMEOUT)
{
SetLastError(RtlNtStatusToDosError(Status));
return FALSE;