Signed-off-by: Alistair Leslie-Hughes leslie_alistair@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 ))) {