winhttp: Fix filling TIMEVAL in netconn_create().

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2022-03-14 13:31:26 +03:00 committed by Alexandre Julliard
parent c02386390c
commit e87d79fc49
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ DWORD netconn_create( struct hostdata *host, const struct sockaddr_storage *sock
if (ret == WSAEWOULDBLOCK || ret == WSAEINPROGRESS)
{
FD_SET set;
TIMEVAL timeval = { 0, timeout * 1000 };
TIMEVAL timeval = { timeout / 1000, (timeout % 1000) * 1000 };
int res;
FD_ZERO( &set );