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
f28b0e3b
Commit
f28b0e3b
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 FTPSETCURRENTDIRECTORY request.
parent
4adce67c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
ftp.c
dlls/wininet/ftp.c
+13
-1
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 @
f28b0e3b
...
...
@@ -352,6 +352,17 @@ BOOL WINAPI FtpSetCurrentDirectoryA(HINTERNET hConnect, LPCSTR lpszDirectory)
* FALSE on failure
*
*/
static
void
AsyncFtpSetCurrentDirectoryProc
(
WORKREQUEST
*
workRequest
)
{
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
const
*
req
=
&
workRequest
->
u
.
FtpSetCurrentDirectoryW
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
->
hdr
;
TRACE
(
"%p
\n
"
,
lpwfs
);
FTP_FtpSetCurrentDirectoryW
(
lpwfs
,
req
->
lpszDirectory
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszDirectory
);
}
BOOL
WINAPI
FtpSetCurrentDirectoryW
(
HINTERNET
hConnect
,
LPCWSTR
lpszDirectory
)
{
LPWININETFTPSESSIONW
lpwfs
=
NULL
;
...
...
@@ -379,7 +390,8 @@ BOOL WINAPI FtpSetCurrentDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
WORKREQUEST
workRequest
;
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
*
req
;
workRequest
.
asyncall
=
FTPSETCURRENTDIRECTORYW
;
workRequest
.
asyncall
=
CALLASYNCPROC
;
workRequest
.
asyncproc
=
AsyncFtpSetCurrentDirectoryProc
;
workRequest
.
hdr
=
WININET_AddRef
(
&
lpwfs
->
hdr
);
req
=
&
workRequest
.
u
.
FtpSetCurrentDirectoryW
;
req
->
lpszDirectory
=
WININET_strdupW
(
lpszDirectory
);
...
...
dlls/wininet/internet.c
View file @
f28b0e3b
...
...
@@ -3243,19 +3243,6 @@ static VOID INTERNET_ExecuteWork(void)
workRequest
.
asyncproc
(
&
workRequest
);
break
;
case
FTPSETCURRENTDIRECTORYW
:
{
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
*
req
;
LPWININETFTPSESSIONW
lpwfs
=
(
LPWININETFTPSESSIONW
)
workRequest
.
hdr
;
TRACE
(
"FTPSETCURRENTDIRECTORYW %p
\n
"
,
lpwfs
);
req
=
&
workRequest
.
u
.
FtpSetCurrentDirectoryW
;
FTP_FtpSetCurrentDirectoryW
(
lpwfs
,
req
->
lpszDirectory
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszDirectory
);
}
break
;
case
FTPCREATEDIRECTORYW
:
{
struct
WORKREQ_FTPCREATEDIRECTORYW
*
req
;
...
...
dlls/wininet/internet.h
View file @
f28b0e3b
...
...
@@ -250,7 +250,6 @@ typedef struct
typedef
enum
{
CALLASYNCPROC
,
FTPSETCURRENTDIRECTORYW
,
FTPCREATEDIRECTORYW
,
FTPFINDFIRSTFILEW
,
FTPGETCURRENTDIRECTORYW
,
...
...
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