winhttp: Use the correct address length when connecting.

This commit is contained in:
Juan Lang 2009-07-15 13:03:19 -07:00 committed by Alexandre Julliard
parent a4a3953b2f
commit 235c6c1e1e
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ static BOOL open_connection( request_t *request )
heap_free( addressW );
return FALSE;
}
if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, sizeof(struct sockaddr_in) ))
if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, slen ))
{
netconn_close( &request->netconn );
heap_free( addressW );