winhttp: Use the correct address length when connecting.
This commit is contained in:
parent
a4a3953b2f
commit
235c6c1e1e
|
@ -920,7 +920,7 @@ static BOOL open_connection( request_t *request )
|
||||||
heap_free( addressW );
|
heap_free( addressW );
|
||||||
return FALSE;
|
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 );
|
netconn_close( &request->netconn );
|
||||||
heap_free( addressW );
|
heap_free( addressW );
|
||||||
|
|
Loading…
Reference in New Issue