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
dd5347ee
Commit
dd5347ee
authored
Oct 20, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Properly clean up ftp sessions.
parent
c33a51ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
ftp.c
dlls/wininet/ftp.c
+4
-6
No files found.
dlls/wininet/ftp.c
View file @
dd5347ee
...
...
@@ -2006,22 +2006,20 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
}
lerror:
if
(
!
bSuccess
&&
nsocket
!=
-
1
)
closesocket
(
nsocket
);
if
(
lpwfs
)
WININET_Release
(
&
lpwfs
->
hdr
);
if
(
!
bSuccess
&&
lpwfs
)
if
(
!
bSuccess
&&
handle
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lpwfs
);
WININET_Release
(
&
hIC
->
hdr
);
WININET_FreeHandle
(
handle
);
handle
=
NULL
;
lpwfs
=
NULL
;
}
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
INTERNET_ASYNC_RESULT
iar
;
iar
.
dwResult
=
(
DWORD
)
lpwfs
;
iar
.
dwResult
=
bSuccess
?
(
DWORD_PTR
)
lpwfs
:
0
;
iar
.
dwError
=
bSuccess
?
ERROR_SUCCESS
:
INTERNET_GetLastError
();
SendAsyncCallback
(
&
hIC
->
hdr
,
dwContext
,
INTERNET_STATUS_REQUEST_COMPLETE
,
&
iar
,
sizeof
(
INTERNET_ASYNC_RESULT
));
...
...
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