Module: wine Branch: master Commit: e87d79fc495e416320471b4b28d6bf942ce3795e URL: https://source.winehq.org/git/wine.git/?a=commit;h=e87d79fc495e416320471b4b2...
Author: Paul Gofman pgofman@codeweavers.com Date: Mon Mar 14 13:31:26 2022 +0300
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
---
dlls/winhttp/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c index 19fafb25804..09ed5e222d1 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -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 );