Commit e87d79fc authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winhttp: Fix filling TIMEVAL in netconn_create().

parent c0238639
......@@ -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 );
......
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