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
05410836
Commit
05410836
authored
Dec 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use proc instead of enum in FTPGETFILEW request.
parent
3c90016f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
+16
-17
ftp.c
dlls/wininet/ftp.c
+16
-1
internet.c
dlls/wininet/internet.c
+0
-15
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/ftp.c
View file @
05410836
...
...
@@ -1198,6 +1198,20 @@ BOOL WINAPI FtpGetFileA(HINTERNET hInternet, LPCSTR lpszRemoteFile, LPCSTR lpszN
* FALSE on failure
*
*/
static
void
AsyncFtpGetFileProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_FTPGETFILEW
const
*
req
=
&
workRequest
->
u
.
FtpGetFileW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
->
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
FTP_FtpGetFileW
(
lpwfs
,
req
->
lpszRemoteFile
,
req
->
lpszNewFile
,
req
->
fFailIfExists
,
req
->
dwLocalFlagsAttribute
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszRemoteFile
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszNewFile
);
}
BOOL
WINAPI
FtpGetFileW
(
HINTERNET
hInternet
,
LPCWSTR
lpszRemoteFile
,
LPCWSTR
lpszNewFile
,
BOOL
fFailIfExists
,
DWORD
dwLocalFlagsAttribute
,
DWORD
dwInternetFlags
,
DWORD
dwContext
)
...
...
@@ -1224,7 +1238,8 @@ BOOL WINAPI FtpGetFileW(HINTERNET hInternet, LPCWSTR lpszRemoteFile, LPCWSTR lps
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPGETFILEW
*
req
;
workRequest
.
asyncall
=
FTPGETFILEW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpGetFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpGetFileW
;
req
->
lpszRemoteFile
=
WININET_strdupW
(
lpszRemoteFile
);
...
...
dlls/wininet/internet.c
View file @
05410836
...
...
@@ -3243,21 +3243,6 @@ static VOID INTERNET_ExecuteWork(void)
workRequest
.
asyncproc
(
&
workRequest
);
break
;
case
FTPGETFILEW
:
{
struct
WORKREQ_FTPGETFILEW
*
req
=
&
workRequest
.
u
.
FtpGetFileW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
.
hdr
;
TRACE
(
"FTPGETFILEW %p
\n
"
,
lpwfs
);
FTP_FtpGetFileW
(
lpwfs
,
req
->
lpszRemoteFile
,
req
->
lpszNewFile
,
req
->
fFailIfExists
,
req
->
dwLocalFlagsAttribute
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszRemoteFile
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszNewFile
);
}
break
;
case
FTPDELETEFILEW
:
{
struct
WORKREQ_FTPDELETEFILEW
*
req
=
&
workRequest
.
u
.
FtpDeleteFileW
;
...
...
dlls/wininet/internet.h
View file @
05410836
...
...
@@ -250,7 +250,6 @@ typedef struct
typedef
enum
{
CALLASYNCPROC
,
FTPGETFILEW
,
FTPDELETEFILEW
,
FTPREMOVEDIRECTORYW
,
FTPRENAMEFILEW
,
...
...
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