Module: wine Branch: master Commit: 235c6c1e1ea959062f51909f2ae5ea402398907b URL: http://source.winehq.org/git/wine.git/?a=commit;h=235c6c1e1ea959062f51909f2a...
Author: Juan Lang juan.lang@gmail.com Date: Wed Jul 15 13:03:19 2009 -0700
winhttp: Use the correct address length when connecting.
---
dlls/winhttp/request.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c index edb9143..5704417 100644 --- a/dlls/winhttp/request.c +++ b/dlls/winhttp/request.c @@ -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 );