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

This commit is contained in:
Alexandre Julliard 2007-05-22 11:59:45 +02:00
parent be59e2bb53
commit 1b15d45dd7
1 changed files with 2 additions and 1 deletions

View File

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