Alexander Dorofeyev : ws2_32: Fix timeout check.

Alexandre Julliard julliard at winehq.org
Wed Dec 26 10:05:08 CST 2007


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

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Mon Dec 24 02:24:09 2007 -0800

ws2_32: Fix timeout check.

---

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

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index f1ea825..98eb2f9 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2766,7 +2766,7 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
 
             if (timeout != -1)
             {
-                timeout -= timeout_start - GetTickCount();
+                timeout -= GetTickCount() - timeout_start;
                 if (timeout < 0) timeout = 0;
             }
 




More information about the wine-cvs mailing list