Module: wine Branch: master Commit: 550fdbd1de2872da7f3758c264bf27afcb23063a URL: https://source.winehq.org/git/wine.git/?a=commit;h=550fdbd1de2872da7f3758c26...
Author: Paul Gofman pgofman@codeweavers.com Date: Mon Mar 14 13:31:27 2022 +0300
winhttp: Return an winhttp error from netconn_create() on connection failure.
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 09ed5e222d1..5e4c55fad6a 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -246,7 +246,7 @@ DWORD netconn_create( struct hostdata *host, const struct sockaddr_storage *sock WARN( "unable to connect to host (%lu)\n", ret ); closesocket( conn->socket ); free( conn ); - return ret; + return ret == ERROR_WINHTTP_TIMEOUT ? ERROR_WINHTTP_TIMEOUT : ERROR_WINHTTP_CANNOT_CONNECT; }
*ret_conn = conn;