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
989bb5b9
Commit
989bb5b9
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_FTPSETCURRENTDIRECTORYW out of WORKREQUEST.
parent
47d0f5a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
ftp.c
dlls/wininet/ftp.c
+13
-11
internet.h
dlls/wininet/internet.h
+0
-6
No files found.
dlls/wininet/ftp.c
View file @
989bb5b9
...
...
@@ -441,16 +441,20 @@ BOOL WINAPI FtpSetCurrentDirectoryA(HINTERNET hConnect, LPCSTR lpszDirectory)
return
ret
;
}
typedef
struct
{
task_header_t
hdr
;
WCHAR
*
directory
;
}
directory_task_t
;
static
void
AsyncFtpSetCurrentDirectoryProc
(
WORKREQUEST
*
workRequest
)
static
void
AsyncFtpSetCurrentDirectoryProc
(
task_header_t
*
hdr
)
{
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
const
*
req
=
&
workRequest
->
u
.
FtpSetCurrentDirectoryW
;
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_FtpSetCurrentDirectoryW
(
lpwfs
,
req
->
lpszD
irectory
);
heap_free
(
req
->
lpszD
irectory
);
FTP_FtpSetCurrentDirectoryW
(
session
,
task
->
d
irectory
);
heap_free
(
task
->
d
irectory
);
}
/***********************************************************************
...
...
@@ -493,14 +497,12 @@ BOOL WINAPI FtpSetCurrentDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
hIC
=
lpwfs
->
lpAppInfo
;
if
(
hIC
->
hdr
.
dwFlags
&
INTERNET_FLAG_ASYNC
)
{
WORKREQUEST
*
task
;
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
*
req
;
directory_task_t
*
task
;
task
=
alloc_async_task
(
&
lpwfs
->
hdr
,
AsyncFtpSetCurrentDirectoryProc
,
sizeof
(
*
task
));
req
=
&
task
->
u
.
FtpSetCurrentDirectoryW
;
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 @
989bb5b9
...
...
@@ -355,11 +355,6 @@ typedef struct
}
http_request_t
;
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
{
LPWSTR
lpszDirectory
;
};
struct
WORKREQ_FTPCREATEDIRECTORYW
{
LPWSTR
lpszDirectory
;
...
...
@@ -427,7 +422,6 @@ typedef struct WORKREQ
object_header_t
*
hdr
;
union
{
struct
WORKREQ_FTPSETCURRENTDIRECTORYW
FtpSetCurrentDirectoryW
;
struct
WORKREQ_FTPCREATEDIRECTORYW
FtpCreateDirectoryW
;
struct
WORKREQ_FTPFINDFIRSTFILEW
FtpFindFirstFileW
;
struct
WORKREQ_FTPGETCURRENTDIRECTORYW
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