mirror of
https://github.com/reactos/reactos.git
synced 2025-05-09 03:37:08 +00:00
[RTL] Satisfy the RtlpTimeoutDisable condition when waiting for critical sections (#4089)
This commit is contained in:
parent
dff55c9d33
commit
56417bfb93
1 changed files with 2 additions and 2 deletions
|
@ -158,14 +158,14 @@ RtlpWaitForCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
|
||||||
Status = NtWaitForKeyedEvent(NULL,
|
Status = NtWaitForKeyedEvent(NULL,
|
||||||
CriticalSection,
|
CriticalSection,
|
||||||
FALSE,
|
FALSE,
|
||||||
&RtlpTimeout);
|
(RtlpTimeoutDisable ? NULL : &RtlpTimeout));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Wait on the Event */
|
/* Wait on the Event */
|
||||||
Status = NtWaitForSingleObject(CriticalSection->LockSemaphore,
|
Status = NtWaitForSingleObject(CriticalSection->LockSemaphore,
|
||||||
FALSE,
|
FALSE,
|
||||||
&RtlpTimeout);
|
(RtlpTimeoutDisable ? NULL : &RtlpTimeout));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We have Timed out */
|
/* We have Timed out */
|
||||||
|
|
Loading…
Reference in a new issue