[core,timer] start timterID with 1

0 is invalid for timerID (or marks a failure state)
This commit is contained in:
akallabeth
2025-05-16 21:03:17 +02:00
parent eaee267206
commit e9ae320c7f

View File

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