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

Alexandre Julliard julliard at winehq.org
Thu Jan 24 12:59:49 CST 2013


Module: wine
Branch: master
Commit: af734f9623d2b03730356a33829b5ebefe59f5a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=af734f9623d2b03730356a33829b5ebefe59f5a4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan 24 15:15:16 2013 +0100

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

---

 dlls/rpcrt4/rpc_transport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/rpc_transport.c b/dlls/rpcrt4/rpc_transport.c
index aebb05e..54f0faa 100644
--- a/dlls/rpcrt4/rpc_transport.c
+++ b/dlls/rpcrt4/rpc_transport.c
@@ -1990,7 +1990,7 @@ static DWORD CALLBACK rpcrt4_http_timer_thread(PVOID param)
          timeout = rpcrt4_http_timer_calc_timeout(data.last_sent_time))
     {
         /* 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;
         rpcrt4_http_keep_connection_active_timer_proc(data.timer_param, TRUE);
     }




More information about the wine-cvs mailing list