Paul Gofman : winhttp: Fix filling TIMEVAL in netconn_create().
Alexandre Julliard
julliard at winehq.org
Mon Mar 14 17:47:36 CDT 2022
Module: wine
Branch: master
Commit: e87d79fc495e416320471b4b28d6bf942ce3795e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e87d79fc495e416320471b4b28d6bf942ce3795e
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Mon Mar 14 13:31:26 2022 +0300
winhttp: Fix filling TIMEVAL in netconn_create().
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 );
More information about the wine-cvs
mailing list