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:
parent
c02386390c
commit
e87d79fc49
|
@ -229,7 +229,7 @@ DWORD netconn_create( struct hostdata *host, const struct sockaddr_storage *sock
|
||||||
if (ret == WSAEWOULDBLOCK || ret == WSAEINPROGRESS)
|
if (ret == WSAEWOULDBLOCK || ret == WSAEINPROGRESS)
|
||||||
{
|
{
|
||||||
FD_SET set;
|
FD_SET set;
|
||||||
TIMEVAL timeval = { 0, timeout * 1000 };
|
TIMEVAL timeval = { timeout / 1000, (timeout % 1000) * 1000 };
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
FD_ZERO( &set );
|
FD_ZERO( &set );
|
||||||
|
|
Loading…
Reference in New Issue