mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +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,
|
||||
CriticalSection,
|
||||
FALSE,
|
||||
&RtlpTimeout);
|
||||
(RtlpTimeoutDisable ? NULL : &RtlpTimeout));
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Wait on the Event */
|
||||
Status = NtWaitForSingleObject(CriticalSection->LockSemaphore,
|
||||
FALSE,
|
||||
&RtlpTimeout);
|
||||
(RtlpTimeoutDisable ? NULL : &RtlpTimeout));
|
||||
}
|
||||
|
||||
/* We have Timed out */
|
||||
|
|
Loading…
Reference in a new issue