Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b20694e7
Commit
b20694e7
authored
Sep 14, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Anonymous FTP can succeed without a password.
parent
f4a4a1c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ftp.c
dlls/wininet/tests/ftp.c
+8
-3
No files found.
dlls/wininet/tests/ftp.c
View file @
b20694e7
...
@@ -77,9 +77,14 @@ static void test_connect(void)
...
@@ -77,9 +77,14 @@ static void test_connect(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hFtp
=
InternetConnect
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
"anonymous"
,
NULL
,
INTERNET_SERVICE_FTP
,
0
,
0
);
hFtp
=
InternetConnect
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
"anonymous"
,
NULL
,
INTERNET_SERVICE_FTP
,
0
,
0
);
ok
(
hFtp
==
NULL
,
"Expected InternetConnect to fail
\n
"
);
if
(
hFtp
)
/* some servers accept an empty password */
ok
(
GetLastError
()
==
ERROR_INTERNET_LOGIN_FAILURE
,
{
"Expected ERROR_INTERNET_LOGIN_FAILURE, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
InternetCloseHandle
(
hFtp
);
}
else
ok
(
GetLastError
()
==
ERROR_INTERNET_LOGIN_FAILURE
,
"Expected ERROR_INTERNET_LOGIN_FAILURE, got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hFtp
=
InternetConnect
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
NULL
,
"IEUser@"
,
INTERNET_SERVICE_FTP
,
0
,
0
);
hFtp
=
InternetConnect
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
NULL
,
"IEUser@"
,
INTERNET_SERVICE_FTP
,
0
,
0
);
...
...
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