Skip to content

Instantly share code, notes, and snippets.

@hardening
Created April 21, 2021 19:28
Show Gist options
  • Save hardening/adef8d786376cab781d09ec38aa07e48 to your computer and use it in GitHub Desktop.
Save hardening/adef8d786376cab781d09ec38aa07e48 to your computer and use it in GitHub Desktop.
diff --git a/winpr/libwinpr/synch/timer.c b/winpr/libwinpr/synch/timer.c
index bb2fb5444..4204f59ef 100644
--- a/winpr/libwinpr/synch/timer.c
+++ b/winpr/libwinpr/synch/timer.c
@@ -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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment