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
302fd67e
Commit
302fd67e
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_FTPDELETEFILEW out of WORKREQUEST.
parent
a489677f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
21 deletions
+14
-21
ftp.c
dlls/wininet/ftp.c
+14
-11
internet.h
dlls/wininet/internet.h
+0
-10
No files found.
dlls/wininet/ftp.c
View file @
302fd67e
...
...
@@ -1786,15 +1786,20 @@ BOOL WINAPI FtpDeleteFileA(HINTERNET hFtpSession, LPCSTR lpszFileName)
return
ret
;
}
static
void
AsyncFtpDeleteFileProc
(
WORKREQUEST
*
workRequest
)
typedef
struct
{
task_header_t
hdr
;
WCHAR
*
file_name
;
}
delete_file_task_t
;
static
void
AsyncFtpDeleteFileProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_FTPDELETEFILEW
const
*
req
=
&
workRequest
->
u
.
FtpDeleteFileW
;
ftp_session_t
*
lpwfs
=
(
ftp_session_t
*
)
workRequest
->
hdr
;
delete_file_task_t
*
task
=
(
delete_file_task_t
*
)
hdr
;
ftp_session_t
*
session
=
(
ftp_session_t
*
)
task
->
hdr
.
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
TRACE
(
"%p
\n
"
,
session
);
FTP_FtpDeleteFileW
(
lpwfs
,
req
->
lpszFile
name
);
heap_free
(
req
->
lpszFile
name
);
FTP_FtpDeleteFileW
(
session
,
task
->
file_
name
);
heap_free
(
task
->
file_
name
);
}
/***********************************************************************
...
...
@@ -1841,14 +1846,12 @@ BOOL WINAPI FtpDeleteFileW(HINTERNET hFtpSession, LPCWSTR lpszFileName)
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_FTPDELETEFILEW
*
req
;
delete_file_task_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpDeleteFileProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
FtpDeleteFileW
;
req
->
lpszFilename
=
heap_strdupW
(
lpszFileName
);
task
->
file_name
=
heap_strdupW
(
lpszFileName
);
r
=
res_to_le
(
INTERNET_AsyncCall
(
task
));
r
=
res_to_le
(
INTERNET_AsyncCall
(
&
task
->
hdr
));
}
else
{
...
...
dlls/wininet/internet.h
View file @
302fd67e
...
...
@@ -354,12 +354,6 @@ typedef struct
netconn_stream_t
netconn_stream
;
}
http_request_t
;
struct
WORKREQ_FTPDELETEFILEW
{
LPWSTR
lpszFilename
;
};
typedef
struct
WORKREQ
task_header_t
;
typedef
void
(
*
async_task_proc_t
)(
task_header_t
*
);
...
...
@@ -367,10 +361,6 @@ typedef struct WORKREQ
{
async_task_proc_t
proc
;
object_header_t
*
hdr
;
union
{
struct
WORKREQ_FTPDELETEFILEW
FtpDeleteFileW
;
}
u
;
}
WORKREQUEST
,
*
LPWORKREQUEST
;
void
*
alloc_async_task
(
object_header_t
*
,
async_task_proc_t
,
size_t
)
DECLSPEC_HIDDEN
;
...
...
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