[KERNEL32_VISTA] Make SleepConditionVariableSRW fail when it times out

This fixes a few newly added winetests.
This commit is contained in:
Pierre Schweitzer 2018-09-16 14:50:01 +02:00
parent 58853297dc
commit 8c5b0fbff3
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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;