Commit d5a09fdd authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

ws2_32: Fix timeout check.

parent 3e8a032e
...@@ -2766,7 +2766,7 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount, ...@@ -2766,7 +2766,7 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
if (timeout != -1) if (timeout != -1)
{ {
timeout -= timeout_start - GetTickCount(); timeout -= GetTickCount() - timeout_start;
if (timeout < 0) timeout = 0; if (timeout < 0) timeout = 0;
} }
......
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