ws2_32: Fix timeout check.
This commit is contained in:
parent
3e8a032e8b
commit
d5a09fdda7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue