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
f05b5b7e
Commit
f05b5b7e
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_FTPFINDFIRSTFILEW out of WORKREQUEST.
parent
059c7795
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
25 deletions
+20
-25
ftp.c
dlls/wininet/ftp.c
+20
-16
internet.h
dlls/wininet/internet.h
+0
-9
No files found.
dlls/wininet/ftp.c
View file @
f05b5b7e
...
...
@@ -739,17 +739,23 @@ HINTERNET WINAPI FtpFindFirstFileA(HINTERNET hConnect,
return
ret
;
}
typedef
struct
{
task_header_t
hdr
;
WCHAR
*
search_file
;
WIN32_FIND_DATAW
*
find_file_data
;
DWORD
flags
;
DWORD_PTR
context
;
}
find_first_file_task_t
;
static
void
AsyncFtpFindFirstFileProc
(
WORKREQUEST
*
workRequest
)
static
void
AsyncFtpFindFirstFileProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_FTPFINDFIRSTFILEW
const
*
req
=
&
workRequest
->
u
.
FtpFindFirstFileW
;
ftp_session_t
*
lpwfs
=
(
ftp_session_t
*
)
workRequest
->
hdr
;
find_first_file_task_t
*
task
=
(
find_first_file_task_t
*
)
hdr
;
ftp_session_t
*
session
=
(
ftp_session_t
*
)
task
->
hdr
.
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
TRACE
(
"%p
\n
"
,
session
);
FTP_FtpFindFirstFileW
(
lpwfs
,
req
->
lpszSearchFile
,
req
->
lpFindFileData
,
req
->
dwFlags
,
req
->
dwContext
);
heap_free
(
req
->
lpszSearchFile
);
FTP_FtpFindFirstFileW
(
session
,
task
->
search_file
,
task
->
find_file_data
,
task
->
flags
,
task
->
context
);
heap_free
(
task
->
search_file
);
}
/***********************************************************************
...
...
@@ -785,18 +791,16 @@ HINTERNET WINAPI FtpFindFirstFileW(HINTERNET hConnect,
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_FTPFINDFIRSTFILEW
*
req
;
find_first_file_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpFindFirstFileProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
FtpFindFirstFileW
;
req
->
lpszSearchFile
=
(
lpszSearchFile
==
NULL
)
?
NULL
:
heap_strdupW
(
lpszSearchFile
);
req
->
lpFindFileData
=
lpFindFileData
;
req
->
dwFlags
=
dwFlags
;
req
->
dwContext
=
dwContext
;
task
->
search_file
=
heap_strdupW
(
lpszSearchFile
);
task
->
find_file_data
=
lpFindFileData
;
task
->
flags
=
dwFlags
;
task
->
context
=
dwContext
;
INTERNET_AsyncCall
(
task
);
r
=
NULL
;
INTERNET_AsyncCall
(
&
task
->
hdr
);
r
=
NULL
;
}
else
{
...
...
dlls/wininet/internet.h
View file @
f05b5b7e
...
...
@@ -355,14 +355,6 @@ typedef struct
}
http_request_t
;
struct
WORKREQ_FTPFINDFIRSTFILEW
{
LPWSTR
lpszSearchFile
;
LPWIN32_FIND_DATAW
lpFindFileData
;
DWORD
dwFlags
;
DWORD_PTR
dwContext
;
};
struct
WORKREQ_FTPOPENFILEW
{
LPWSTR
lpszFilename
;
...
...
@@ -396,7 +388,6 @@ typedef struct WORKREQ
object_header_t
*
hdr
;
union
{
struct
WORKREQ_FTPFINDFIRSTFILEW
FtpFindFirstFileW
;
struct
WORKREQ_FTPOPENFILEW
FtpOpenFileW
;
struct
WORKREQ_FTPDELETEFILEW
FtpDeleteFileW
;
struct
WORKREQ_FTPRENAMEFILEW
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