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
3a08f1f6
Commit
3a08f1f6
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 FTPRENAMEFILEW request.
parent
97157cce
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
+14
-15
ftp.c
dlls/wininet/ftp.c
+14
-1
internet.c
dlls/wininet/internet.c
+0
-13
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/ftp.c
View file @
3a08f1f6
...
...
@@ -1654,6 +1654,18 @@ BOOL WINAPI FtpRenameFileA(HINTERNET hFtpSession, LPCSTR lpszSrc, LPCSTR lpszDes
* FALSE on failure
*
*/
static
void
AsyncFtpRenameFileProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_FTPRENAMEFILEW
const
*
req
=
&
workRequest
->
u
.
FtpRenameFileW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
->
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
FTP_FtpRenameFileW
(
lpwfs
,
req
->
lpszSrcFile
,
req
->
lpszDestFile
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszSrcFile
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszDestFile
);
}
BOOL
WINAPI
FtpRenameFileW
(
HINTERNET
hFtpSession
,
LPCWSTR
lpszSrc
,
LPCWSTR
lpszDest
)
{
LPWININETFTPSESSIONW
lpwfs
;
...
...
@@ -1673,7 +1685,8 @@ BOOL WINAPI FtpRenameFileW(HINTERNET hFtpSession, LPCWSTR lpszSrc, LPCWSTR lpszD
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPRENAMEFILEW
*
req
;
workRequest
.
asyncall
=
FTPRENAMEFILEW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpRenameFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpRenameFileW
;
req
->
lpszSrcFile
=
WININET_strdupW
(
lpszSrc
);
...
...
dlls/wininet/internet.c
View file @
3a08f1f6
...
...
@@ -3243,19 +3243,6 @@ static VOID INTERNET_ExecuteWork(void)
workRequest
.
asyncproc
(
&
workRequest
);
break
;
case
FTPRENAMEFILEW
:
{
struct
WORKREQ_FTPRENAMEFILEW
*
req
=
&
workRequest
.
u
.
FtpRenameFileW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
.
hdr
;
TRACE
(
"FTPRENAMEFILEW %p
\n
"
,
lpwfs
);
FTP_FtpRenameFileW
(
lpwfs
,
req
->
lpszSrcFile
,
req
->
lpszDestFile
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszSrcFile
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszDestFile
);
}
break
;
case
FTPFINDNEXTW
:
{
struct
WORKREQ_FTPFINDNEXTW
*
req
;
...
...
dlls/wininet/internet.h
View file @
3a08f1f6
...
...
@@ -250,7 +250,6 @@ typedef struct
typedef
enum
{
CALLASYNCPROC
,
FTPRENAMEFILEW
,
FTPFINDNEXTW
,
}
ASYNC_FUNC
;
...
...
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