winhttp: Pass length in WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER callback.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2020-06-22 21:39:23 +02:00 committed by Alexandre Julliard
parent 6a98d5f524
commit 57a1936053
1 changed files with 2 additions and 1 deletions

View File

@ -1592,7 +1592,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 )))
{