Commit b67bbb73 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

server: Don't create wait object if infinite timeout is passed to NtSetTimer.

parent 123a4a88
......@@ -177,6 +177,7 @@ static int set_timer( struct timer *timer, timeout_t expire, unsigned int period
timer->callback = callback;
timer->arg = arg;
if (callback) timer->thread = (struct thread *)grab_object( current );
if (expire != TIMEOUT_INFINITE)
timer->timeout = add_timeout_user( expire, timer_callback, timer );
return signaled;
}
......
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