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
d5c0b17a
Commit
d5c0b17a
authored
Jan 30, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Moved WORKREQ_FTPRENAMEFILEW out of WORKREQUEST.
parent
228d6a60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
20 deletions
+17
-20
ftp.c
dlls/wininet/ftp.c
+17
-13
internet.h
dlls/wininet/internet.h
+0
-7
No files found.
dlls/wininet/ftp.c
View file @
d5c0b17a
...
...
@@ -2076,16 +2076,22 @@ BOOL WINAPI FtpRenameFileA(HINTERNET hFtpSession, LPCSTR lpszSrc, LPCSTR lpszDes
return
ret
;
}
static
void
AsyncFtpRenameFileProc
(
WORKREQUEST
*
workRequest
)
typedef
struct
{
task_header_t
hdr
;
WCHAR
*
src_file
;
WCHAR
*
dst_file
;
}
rename_file_task_t
;
static
void
AsyncFtpRenameFileProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_FTPRENAMEFILEW
const
*
req
=
&
workRequest
->
u
.
FtpRenameFileW
;
ftp_session_t
*
lpwfs
=
(
ftp_session_t
*
)
workRequest
->
hdr
;
rename_file_task_t
*
task
=
(
rename_file_task_t
*
)
hdr
;
ftp_session_t
*
session
=
(
ftp_session_t
*
)
task
->
hdr
.
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
TRACE
(
"%p
\n
"
,
session
);
FTP_FtpRenameFileW
(
lpwfs
,
req
->
lpszSrcFile
,
req
->
lpszDestF
ile
);
heap_free
(
req
->
lpszSrcF
ile
);
heap_free
(
req
->
lpszDestF
ile
);
FTP_FtpRenameFileW
(
session
,
task
->
src_file
,
task
->
dst_f
ile
);
heap_free
(
task
->
src_f
ile
);
heap_free
(
task
->
dst_f
ile
);
}
/***********************************************************************
...
...
@@ -2132,15 +2138,13 @@ BOOL WINAPI FtpRenameFileW(HINTERNET hFtpSession, LPCWSTR lpszSrc, LPCWSTR lpszD
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_FTPRENAMEFILEW
*
req
;
rename_file_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpRenameFileProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
FtpRenameFileW
;
req
->
lpszSrcFile
=
heap_strdupW
(
lpszSrc
);
req
->
lpszDestFile
=
heap_strdupW
(
lpszDest
);
task
->
src_file
=
heap_strdupW
(
lpszSrc
);
task
->
dst_file
=
heap_strdupW
(
lpszDest
);
r
=
res_to_le
(
INTERNET_AsyncCall
(
task
));
r
=
res_to_le
(
INTERNET_AsyncCall
(
&
task
->
hdr
));
}
else
{
...
...
dlls/wininet/internet.h
View file @
d5c0b17a
...
...
@@ -360,12 +360,6 @@ struct WORKREQ_FTPDELETEFILEW
LPWSTR
lpszFilename
;
};
struct
WORKREQ_FTPRENAMEFILEW
{
LPWSTR
lpszSrcFile
;
LPWSTR
lpszDestFile
;
};
struct
WORKREQ_FTPFINDNEXTW
{
LPWIN32_FIND_DATAW
lpFindFileData
;
...
...
@@ -381,7 +375,6 @@ typedef struct WORKREQ
union
{
struct
WORKREQ_FTPDELETEFILEW
FtpDeleteFileW
;
struct
WORKREQ_FTPRENAMEFILEW
FtpRenameFileW
;
struct
WORKREQ_FTPFINDNEXTW
FtpFindNextW
;
}
u
;
}
WORKREQUEST
,
*
LPWORKREQUEST
;
...
...
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