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
b9b900f4
Commit
b9b900f4
authored
Dec 01, 2007
by
Zac Brown
Committed by
Alexandre Julliard
Dec 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix FtpGetCurrentDirectoryW to handle bad input.
parent
b94ebc4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
ftp.c
dlls/wininet/ftp.c
+19
-1
No files found.
dlls/wininet/ftp.c
View file @
b9b900f4
...
...
@@ -885,12 +885,30 @@ BOOL WINAPI FtpGetCurrentDirectoryW(HINTERNET hFtpSession, LPWSTR lpszCurrentDir
TRACE
(
"len(%d)
\n
"
,
*
lpdwCurrentDirectory
);
lpwfs
=
(
LPWININETFTPSESSIONW
)
WININET_GetObject
(
hFtpSession
);
if
(
NULL
==
lpwfs
||
WH_HFTPSESSION
!=
lpwfs
->
hdr
.
htype
)
if
(
NULL
==
lpwfs
)
{
INTERNET_SetLastError
(
ERROR_INVALID_HANDLE
);
goto
lend
;
}
if
(
WH_HFTPSESSION
!=
lpwfs
->
hdr
.
htype
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
goto
lend
;
}
if
(
!
lpdwCurrentDirectory
)
{
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
goto
lend
;
}
if
(
lpszCurrentDirectory
==
NULL
)
{
INTERNET_SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
goto
lend
;
}
if
(
lpwfs
->
download_in_progress
!=
NULL
)
{
INTERNET_SetLastError
(
ERROR_FTP_TRANSFER_IN_PROGRESS
);
...
...
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