mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
[core,timer] start timterID with 1
0 is invalid for timerID (or marks a failure state)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user