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
ffa7d167
Commit
ffa7d167
authored
Jan 29, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Moved WORKREQ_FTPREMOVEDIRECTORYW out of WORKREQUEST.
parent
d816de27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
17 deletions
+9
-17
ftp.c
dlls/wininet/ftp.c
+9
-11
internet.h
dlls/wininet/internet.h
+0
-6
No files found.
dlls/wininet/ftp.c
View file @
ffa7d167
...
...
@@ -1913,15 +1913,15 @@ BOOL WINAPI FtpRemoveDirectoryA(HINTERNET hFtpSession, LPCSTR lpszDirectory)
return
ret
;
}
static
void
AsyncFtpRemoveDirectoryProc
(
WORKREQUEST
*
workRequest
)
static
void
AsyncFtpRemoveDirectoryProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_FTPREMOVEDIRECTORYW
const
*
req
=
&
workRequest
->
u
.
FtpRemoveDirectoryW
;
ftp_session_t
*
lpwfs
=
(
ftp_session_t
*
)
workRequest
->
hdr
;
directory_task_t
*
task
=
(
directory_task_t
*
)
hdr
;
ftp_session_t
*
session
=
(
ftp_session_t
*
)
task
->
hdr
.
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
TRACE
(
"%p
\n
"
,
session
);
FTP_FtpRemoveDirectoryW
(
lpwfs
,
req
->
lpszD
irectory
);
heap_free
(
req
->
lpszD
irectory
);
FTP_FtpRemoveDirectoryW
(
session
,
task
->
d
irectory
);
heap_free
(
task
->
d
irectory
);
}
/***********************************************************************
...
...
@@ -1968,14 +1968,12 @@ BOOL WINAPI FtpRemoveDirectoryW(HINTERNET hFtpSession, LPCWSTR lpszDirectory)
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_FTPREMOVEDIRECTORYW
*
req
;
directory_task_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpRemoveDirectoryProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
FtpRemoveDirectoryW
;
req
->
lpszDirectory
=
heap_strdupW
(
lpszDirectory
);
task
->
directory
=
heap_strdupW
(
lpszDirectory
);
r
=
res_to_le
(
INTERNET_AsyncCall
(
task
));
r
=
res_to_le
(
INTERNET_AsyncCall
(
&
task
->
hdr
));
}
else
{
...
...
dlls/wininet/internet.h
View file @
ffa7d167
...
...
@@ -392,11 +392,6 @@ struct WORKREQ_FTPDELETEFILEW
LPWSTR
lpszFilename
;
};
struct
WORKREQ_FTPREMOVEDIRECTORYW
{
LPWSTR
lpszDirectory
;
};
struct
WORKREQ_FTPRENAMEFILEW
{
LPWSTR
lpszSrcFile
;
...
...
@@ -422,7 +417,6 @@ typedef struct WORKREQ
struct
WORKREQ_FTPOPENFILEW
FtpOpenFileW
;
struct
WORKREQ_FTPGETFILEW
FtpGetFileW
;
struct
WORKREQ_FTPDELETEFILEW
FtpDeleteFileW
;
struct
WORKREQ_FTPREMOVEDIRECTORYW
FtpRemoveDirectoryW
;
struct
WORKREQ_FTPRENAMEFILEW
FtpRenameFileW
;
struct
WORKREQ_FTPFINDNEXTW
FtpFindNextW
;
}
u
;
...
...
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