Commit af734f96 authored by Alexandre Julliard's avatar Alexandre Julliard

rpcrt4: Fix wrap-around bug in tick count comparison.

parent ec5e51d8
...@@ -1990,7 +1990,7 @@ static DWORD CALLBACK rpcrt4_http_timer_thread(PVOID param) ...@@ -1990,7 +1990,7 @@ static DWORD CALLBACK rpcrt4_http_timer_thread(PVOID param)
timeout = rpcrt4_http_timer_calc_timeout(data.last_sent_time)) timeout = rpcrt4_http_timer_calc_timeout(data.last_sent_time))
{ {
/* are we too soon after last send? */ /* are we too soon after last send? */
if (GetTickCount() - HTTP_IDLE_TIME < *data.last_sent_time) if (GetTickCount() - *data.last_sent_time < HTTP_IDLE_TIME)
continue; continue;
rpcrt4_http_keep_connection_active_timer_proc(data.timer_param, TRUE); rpcrt4_http_keep_connection_active_timer_proc(data.timer_param, TRUE);
} }
......
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