Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
deabdca6
Commit
deabdca6
authored
Jul 09, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use length reported by GetAddress in FTP_Connect.
parent
33d09e73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ftp.c
dlls/wininet/ftp.c
+3
-3
No files found.
dlls/wininet/ftp.c
View file @
deabdca6
...
@@ -2458,9 +2458,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
...
@@ -2458,9 +2458,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
}
}
SendAsyncCallback
(
&
hIC
->
hdr
,
dwContext
,
INTERNET_STATUS_CONNECTING_TO_SERVER
,
SendAsyncCallback
(
&
hIC
->
hdr
,
dwContext
,
INTERNET_STATUS_CONNECTING_TO_SERVER
,
&
socketAddr
,
s
izeof
(
struct
sockaddr_in
)
);
&
socketAddr
,
s
ock_namelen
);
if
(
connect
(
nsocket
,
(
struct
sockaddr
*
)
&
socketAddr
,
s
izeof
(
socketAddr
)
)
<
0
)
if
(
connect
(
nsocket
,
(
struct
sockaddr
*
)
&
socketAddr
,
s
ock_namelen
)
<
0
)
{
{
ERR
(
"Unable to connect (%s)
\n
"
,
strerror
(
errno
));
ERR
(
"Unable to connect (%s)
\n
"
,
strerror
(
errno
));
INTERNET_SetLastError
(
ERROR_INTERNET_CANNOT_CONNECT
);
INTERNET_SetLastError
(
ERROR_INTERNET_CANNOT_CONNECT
);
...
@@ -2471,7 +2471,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
...
@@ -2471,7 +2471,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
TRACE
(
"Connected to server
\n
"
);
TRACE
(
"Connected to server
\n
"
);
lpwfs
->
sndSocket
=
nsocket
;
lpwfs
->
sndSocket
=
nsocket
;
SendAsyncCallback
(
&
hIC
->
hdr
,
dwContext
,
INTERNET_STATUS_CONNECTED_TO_SERVER
,
SendAsyncCallback
(
&
hIC
->
hdr
,
dwContext
,
INTERNET_STATUS_CONNECTED_TO_SERVER
,
&
socketAddr
,
s
izeof
(
struct
sockaddr_in
)
);
&
socketAddr
,
s
ock_namelen
);
sock_namelen
=
sizeof
(
lpwfs
->
socketAddress
);
sock_namelen
=
sizeof
(
lpwfs
->
socketAddress
);
getsockname
(
nsocket
,
(
struct
sockaddr
*
)
&
lpwfs
->
socketAddress
,
&
sock_namelen
);
getsockname
(
nsocket
,
(
struct
sockaddr
*
)
&
lpwfs
->
socketAddress
,
&
sock_namelen
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment