From e9ae320c7f9997ab32b8f4db15928f6d68eb8dc2 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 16 May 2025 21:03:17 +0200 Subject: [PATCH] [core,timer] start timterID with 1 0 is invalid for timerID (or marks a failure state) --- libfreerdp/core/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/timer.c b/libfreerdp/core/timer.c index 74d63b475..dc52e74d9 100644 --- a/libfreerdp/core/timer.c +++ b/libfreerdp/core/timer.c @@ -61,7 +61,7 @@ FreeRDP_TimerID freerdp_timer_add(rdpContext* context, uint64_t intervalNS, return false; const uint64_t cur = winpr_GetTickCount64NS(); - const timer_entry_t entry = { .id = timer->maxIdx++, + const timer_entry_t entry = { .id = ++timer->maxIdx, .intervallNS = intervalNS, .nextRunTimeNS = cur + intervalNS, .cb = callback,