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
228d6a60
Commit
228d6a60
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_FTPOPENFILEW out of WORKREQUEST.
parent
f05b5b7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
26 deletions
+21
-26
ftp.c
dlls/wininet/ftp.c
+21
-17
internet.h
dlls/wininet/internet.h
+0
-9
No files found.
dlls/wininet/ftp.c
View file @
228d6a60
...
...
@@ -791,7 +791,7 @@ HINTERNET WINAPI FtpFindFirstFileW(HINTERNET hConnect,
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
find_first_file_t
*
task
;
find_first_file_t
ask_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpFindFirstFileProc
,
sizeof
(
*
task
));
task
->
search_file
=
heap_strdupW
(
lpszSearchFile
);
...
...
@@ -1454,17 +1454,23 @@ HINTERNET WINAPI FtpOpenFileA(HINTERNET hFtpSession,
return
ret
;
}
typedef
struct
{
task_header_t
hdr
;
WCHAR
*
file_name
;
DWORD
access
;
DWORD
flags
;
DWORD_PTR
context
;
}
open_file_task_t
;
static
void
AsyncFtpOpenFileProc
(
WORKREQUEST
*
workRequest
)
static
void
AsyncFtpOpenFileProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_FTPOPENFILEW
const
*
req
=
&
workRequest
->
u
.
FtpOpenFileW
;
ftp_session_t
*
lpwfs
=
(
ftp_session_t
*
)
workRequest
->
hdr
;
open_file_task_t
*
task
=
(
open_file_task_t
*
)
hdr
;
ftp_session_t
*
session
=
(
ftp_session_t
*
)
task
->
hdr
.
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
TRACE
(
"%p
\n
"
,
session
);
FTP_FtpOpenFileW
(
lpwfs
,
req
->
lpszFilename
,
req
->
dwAccess
,
req
->
dwFlags
,
req
->
dwContext
);
heap_free
(
req
->
lpszFilename
);
FTP_FtpOpenFileW
(
session
,
task
->
file_name
,
task
->
access
,
task
->
flags
,
task
->
context
);
heap_free
(
task
->
file_name
);
}
/***********************************************************************
...
...
@@ -1518,18 +1524,16 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET hFtpSession,
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_FTPOPENFILEW
*
req
;
open_file_task_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpOpenFileProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
FtpOpenFileW
;
req
->
lpszFilename
=
heap_strdupW
(
lpszFileName
);
req
->
dwAccess
=
fdwAccess
;
req
->
dwFlags
=
dwFlags
;
req
->
dwContext
=
dwContext
;
task
->
file_name
=
heap_strdupW
(
lpszFileName
);
task
->
access
=
fdwAccess
;
task
->
flags
=
dwFlags
;
task
->
context
=
dwContext
;
INTERNET_AsyncCall
(
task
);
r
=
NULL
;
INTERNET_AsyncCall
(
&
task
->
hdr
);
r
=
NULL
;
}
else
{
...
...
dlls/wininet/internet.h
View file @
228d6a60
...
...
@@ -355,14 +355,6 @@ typedef struct
}
http_request_t
;
struct
WORKREQ_FTPOPENFILEW
{
LPWSTR
lpszFilename
;
DWORD
dwAccess
;
DWORD
dwFlags
;
DWORD_PTR
dwContext
;
};
struct
WORKREQ_FTPDELETEFILEW
{
LPWSTR
lpszFilename
;
...
...
@@ -388,7 +380,6 @@ typedef struct WORKREQ
object_header_t
*
hdr
;
union
{
struct
WORKREQ_FTPOPENFILEW
FtpOpenFileW
;
struct
WORKREQ_FTPDELETEFILEW
FtpDeleteFileW
;
struct
WORKREQ_FTPRENAMEFILEW
FtpRenameFileW
;
struct
WORKREQ_FTPFINDNEXTW
FtpFindNextW
;
...
...
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