mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[RTL] Satisfy the RtlpTimeoutDisable condition when waiting for critical sections (#4089)
This commit is contained in:
@@ -158,14 +158,14 @@ RtlpWaitForCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
|
||||
Status = NtWaitForKeyedEvent(NULL,
|
||||
CriticalSection,
|
||||
FALSE,
|
||||
&RtlpTimeout);
|
||||
(RtlpTimeoutDisable ? NULL : &RtlpTimeout));
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Wait on the Event */
|
||||
Status = NtWaitForSingleObject(CriticalSection->LockSemaphore,
|
||||
FALSE,
|
||||
&RtlpTimeout);
|
||||
(RtlpTimeoutDisable ? NULL : &RtlpTimeout));
|
||||
}
|
||||
|
||||
/* We have Timed out */
|
||||
|
||||
Reference in New Issue
Block a user