[PATCH 2/2] winhttp: Pass length in WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER callback
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sun Jun 21 03:48:18 CDT 2020
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/winhttp/request.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index b25ab9a45c..5d22aeadbf 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -1591,7 +1591,8 @@ static DWORD open_connection( struct request *request )
TRACE("connecting to %s:%u\n", debugstr_w(addressW), port);
- send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER, addressW, 0 );
+ len = lstrlenW( addressW ) + 1;
+ send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER, addressW, len );
if ((ret = netconn_create( host, &connect->sockaddr, request->connect_timeout, &netconn )))
{
--
2.27.0
More information about the wine-devel
mailing list