Timer changes were wrong when timerfd support is not available (no valid file
descriptor returned by GetFd calls).
This commit is contained in:
David Fort 2021-04-22 09:26:59 +02:00 committed by akallabeth
parent ec6b11c537
commit 5e3e2cd9fd

View File

@ -344,6 +344,7 @@ HANDLE CreateWaitableTimerA(LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManua
#if defined(TIMER_IMPL_DISPATCH) || defined(TIMER_IMPL_POSIX)
if (!winpr_event_init(&timer->event))
goto fail;
timer->fd = timer->event.fds[0];
#endif
#if defined(TIMER_IMPL_DISPATCH)