Commit 1b15d45d authored by Alexandre Julliard's avatar Alexandre Julliard

server: Don't allow a waitable timer to be set to expire in the past.

parent be59e2bb
......@@ -164,7 +164,8 @@ static int set_timer( struct timer *timer, timeout_t expire, unsigned int period
period = 0; /* period doesn't make any sense for a manual timer */
timer->signaled = 0;
}
if (expire > 0 && expire < current_time) expire = current_time;
timer->when = expire;
timer->period = period;
timer->callback = callback;
timer->arg = arg;
......
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