Timer changes were wrong when timerfd support is not available (no valid file
descriptor returned by GetFd calls).

(cherry picked from commit 5e3e2cd9fd)
This commit is contained in:
David Fort 2021-04-22 09:26:59 +02:00 коммит произвёл akallabeth
Родитель b5ab8484d3
Коммит 65042d308f
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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