ws2_32: Fix timeout check.

This commit is contained in:
Alexander Dorofeyev 2007-12-24 02:24:09 -08:00 committed by Alexandre Julliard
parent 3e8a032e8b
commit d5a09fdda7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}