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
1a832746
Commit
1a832746
authored
Oct 30, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't release the parent object in FTP_Connect, the caller will do that.
parent
5f5df832
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ftp.c
dlls/wininet/ftp.c
+0
-1
ftp.c
dlls/wininet/tests/ftp.c
+9
-7
No files found.
dlls/wininet/ftp.c
View file @
1a832746
...
...
@@ -2062,7 +2062,6 @@ lerror:
if
(
!
bSuccess
&&
handle
)
{
WININET_Release
(
&
hIC
->
hdr
);
WININET_FreeHandle
(
handle
);
handle
=
NULL
;
}
...
...
dlls/wininet/tests/ftp.c
View file @
1a832746
...
...
@@ -668,19 +668,21 @@ START_TEST(ftp)
hInternet
=
InternetOpen
(
"winetest"
,
0
,
NULL
,
NULL
,
0
);
ok
(
hInternet
!=
NULL
,
"InternetOpen failed: %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hFtp
=
InternetConnect
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
"anonymous"
,
NULL
,
INTERNET_SERVICE_FTP
,
INTERNET_FLAG_PASSIVE
,
0
);
ok
(
hFtp
!=
NULL
,
"InternetOpen failed: %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hHttp
=
InternetConnect
(
hInternet
,
"www.winehq.org"
,
INTERNET_DEFAULT_HTTP_PORT
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0
,
0
);
ok
(
hFtp
!=
NULL
,
"InternetOpen failed: %u
\n
"
,
GetLastError
());
if
(
!
hFtp
)
{
InternetCloseHandle
(
hInternet
);
skip
(
"No ftp connection could be made to ftp.winehq.org
\n
"
);
return
;
}
hHttp
=
InternetConnect
(
hInternet
,
"www.winehq.org"
,
INTERNET_DEFAULT_HTTP_PORT
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0
,
0
);
if
(
!
hHttp
)
{
InternetCloseHandle
(
hFtp
);
InternetCloseHandle
(
hInternet
);
skip
(
"No http connection could be made to www.winehq.org
\n
"
);
return
;
}
/* The first call should always be a proper InternetOpen, if not
* several calls will return ERROR_INTERNET_NOT_INITIALIZED when
...
...
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