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
9a7fb5f1
Commit
9a7fb5f1
authored
Mar 20, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/ftp: Simplify FTP_FtpGetFileW a bit.
parent
5b5d7371
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ftp.c
dlls/wininet/ftp.c
+2
-4
No files found.
dlls/wininet/ftp.c
View file @
9a7fb5f1
...
...
@@ -1317,7 +1317,7 @@ BOOL WINAPI FTP_FtpGetFileW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile,
hFile
=
CreateFileW
(
lpszNewFile
,
GENERIC_WRITE
,
0
,
0
,
fFailIfExists
?
CREATE_NEW
:
CREATE_ALWAYS
,
dwLocalFlagsAttribute
,
0
);
if
(
INVALID_HANDLE_VALUE
==
hFile
)
goto
lend
;
return
FALSE
;
/* Set up socket to retrieve data */
nBytes
=
FTP_SendRetrieve
(
lpwfs
,
lpszRemoteFile
,
dwInternetFlags
);
...
...
@@ -1345,12 +1345,10 @@ BOOL WINAPI FTP_FtpGetFileW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszRemoteFile,
}
}
lend:
if
(
lpwfs
->
lstnSocket
!=
-
1
)
closesocket
(
lpwfs
->
lstnSocket
);
if
(
INVALID_HANDLE_VALUE
!=
hFile
)
CloseHandle
(
hFile
);
CloseHandle
(
hFile
);
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
...
...
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