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
be86c297
Commit
be86c297
authored
Dec 01, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Implement InternetQueryOption(INTERNET_OPTION_DATAFILE_NAME) for ftp file objects.
parent
6f6ee2e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
ftp.c
dlls/wininet/ftp.c
+32
-1
No files found.
dlls/wininet/ftp.c
View file @
be86c297
...
...
@@ -1133,8 +1133,39 @@ static DWORD FTPFILE_QueryOption(object_header_t *hdr, DWORD option, void *buffe
*
size
=
sizeof
(
DWORD
);
*
(
DWORD
*
)
buffer
=
INTERNET_HANDLE_TYPE_FTP_FILE
;
return
ERROR_SUCCESS
;
}
case
INTERNET_OPTION_DATAFILE_NAME
:
{
DWORD
required
;
ftp_file_t
*
file
=
(
ftp_file_t
*
)
hdr
;
TRACE
(
"INTERNET_OPTION_DATAFILE_NAME
\n
"
);
if
(
!
file
->
cache_file
)
{
*
size
=
0
;
return
ERROR_INTERNET_ITEM_NOT_FOUND
;
}
if
(
unicode
)
{
required
=
(
lstrlenW
(
file
->
cache_file
)
+
1
)
*
sizeof
(
WCHAR
);
if
(
*
size
<
required
)
return
ERROR_INSUFFICIENT_BUFFER
;
*
size
=
required
;
memcpy
(
buffer
,
file
->
cache_file
,
*
size
);
return
ERROR_SUCCESS
;
}
else
{
required
=
WideCharToMultiByte
(
CP_ACP
,
0
,
file
->
cache_file
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
required
>
*
size
)
return
ERROR_INSUFFICIENT_BUFFER
;
*
size
=
WideCharToMultiByte
(
CP_ACP
,
0
,
file
->
cache_file
,
-
1
,
buffer
,
*
size
,
NULL
,
NULL
);
return
ERROR_SUCCESS
;
}
}
}
return
INET_QueryOption
(
option
,
buffer
,
size
,
unicode
);
}
...
...
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