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
3c90016f
Commit
3c90016f
authored
Dec 25, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use proc instead of enum in FTPOPENFILEW request.
parent
3b77ff24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
ftp.c
dlls/wininet/ftp.c
+15
-2
internet.c
dlls/wininet/internet.c
+0
-13
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/ftp.c
View file @
3c90016f
...
...
@@ -1003,6 +1003,18 @@ HINTERNET WINAPI FtpOpenFileA(HINTERNET hFtpSession,
* NULL on failure
*
*/
static
void
AsyncFtpOpenFileProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_FTPOPENFILEW
const
*
req
=
&
workRequest
->
u
.
FtpOpenFileW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
->
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
FTP_FtpOpenFileW
(
lpwfs
,
req
->
lpszFilename
,
req
->
dwAccess
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszFilename
);
}
HINTERNET
WINAPI
FtpOpenFileW
(
HINTERNET
hFtpSession
,
LPCWSTR
lpszFileName
,
DWORD
fdwAccess
,
DWORD
dwFlags
,
DWORD
dwContext
)
...
...
@@ -1031,8 +1043,9 @@ HINTERNET WINAPI FtpOpenFileW(HINTERNET hFtpSession,
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPOPENFILEW
*
req
;
workRequest
.
asyncall
=
FTPOPENFILEW
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpOpenFileProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpOpenFileW
;
req
->
lpszFilename
=
WININET_strdupW
(
lpszFileName
);
req
->
dwAccess
=
fdwAccess
;
...
...
dlls/wininet/internet.c
View file @
3c90016f
...
...
@@ -3243,19 +3243,6 @@ static VOID INTERNET_ExecuteWork(void)
workRequest
.
asyncproc
(
&
workRequest
);
break
;
case
FTPOPENFILEW
:
{
struct
WORKREQ_FTPOPENFILEW
*
req
=
&
workRequest
.
u
.
FtpOpenFileW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
.
hdr
;
TRACE
(
"FTPOPENFILEW %p
\n
"
,
lpwfs
);
FTP_FtpOpenFileW
(
lpwfs
,
req
->
lpszFilename
,
req
->
dwAccess
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszFilename
);
}
break
;
case
FTPGETFILEW
:
{
struct
WORKREQ_FTPGETFILEW
*
req
=
&
workRequest
.
u
.
FtpGetFileW
;
...
...
dlls/wininet/internet.h
View file @
3c90016f
...
...
@@ -250,7 +250,6 @@ typedef struct
typedef
enum
{
CALLASYNCPROC
,
FTPOPENFILEW
,
FTPGETFILEW
,
FTPDELETEFILEW
,
FTPREMOVEDIRECTORYW
,
...
...
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