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
23473ccc
Commit
23473ccc
authored
Mar 01, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/ftp: Let CreateFile deal with last error.
parent
24eabb8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ftp.c
dlls/wininet/ftp.c
+1
-3
ftp.c
dlls/wininet/tests/ftp.c
+3
-0
No files found.
dlls/wininet/ftp.c
View file @
23473ccc
...
...
@@ -284,10 +284,8 @@ BOOL WINAPI FTP_FtpPutFileW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszLocalFile,
/* Open file to be uploaded */
if
(
INVALID_HANDLE_VALUE
==
(
hFile
=
CreateFileW
(
lpszLocalFile
,
GENERIC_READ
,
0
,
0
,
OPEN_EXISTING
,
0
,
0
)))
{
INTERNET_SetLastError
(
ERROR_FILE_NOT_FOUND
);
/* Let CreateFile set the appropriate error */
return
FALSE
;
}
hIC
=
lpwfs
->
lpAppInfo
;
...
...
dlls/wininet/tests/ftp.c
View file @
23473ccc
...
...
@@ -616,6 +616,9 @@ static void test_putfile(void)
return
;
}
/* Start clean */
DeleteFileA
(
"non_existing_local"
);
/* We should have a ftp-connection, try some puts */
/* No local file given */
...
...
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