Commit 4dae2544 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

win32: fix integer underflow in vlc_timer_schedule()

parent a688c408
......@@ -1075,7 +1075,11 @@ void vlc_timer_schedule (vlc_timer_t timer, bool absolute,
return; /* Disarm */
if (absolute)
{
value -= mdate ();
if (value < 0)
value = 0;
}
value = (value + 999) / 1000;
interval = (interval + 999) / 1000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment