mirror of
https://github.com/reactos/wine.git
synced 2024-11-27 05:30:30 +00:00
wininet: Moved WORKREQ_FTPCREATEDIRECTORYW out of WORKREQUEST.
This commit is contained in:
parent
989bb5b983
commit
d816de27fb
@ -589,15 +589,15 @@ BOOL WINAPI FtpCreateDirectoryA(HINTERNET hConnect, LPCSTR lpszDirectory)
|
||||
}
|
||||
|
||||
|
||||
static void AsyncFtpCreateDirectoryProc(WORKREQUEST *workRequest)
|
||||
static void AsyncFtpCreateDirectoryProc(task_header_t *hdr)
|
||||
{
|
||||
struct WORKREQ_FTPCREATEDIRECTORYW const *req = &workRequest->u.FtpCreateDirectoryW;
|
||||
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_FtpCreateDirectoryW(lpwfs, req->lpszDirectory);
|
||||
heap_free(req->lpszDirectory);
|
||||
FTP_FtpCreateDirectoryW(session, task->directory);
|
||||
heap_free(task->directory);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
@ -644,14 +644,12 @@ BOOL WINAPI FtpCreateDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
|
||||
hIC = lpwfs->lpAppInfo;
|
||||
if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC)
|
||||
{
|
||||
WORKREQUEST *task;
|
||||
struct WORKREQ_FTPCREATEDIRECTORYW *req;
|
||||
directory_task_t *task;
|
||||
|
||||
task = alloc_async_task(&lpwfs->hdr, AsyncFtpCreateDirectoryProc, sizeof(*task));
|
||||
req = &task->u.FtpCreateDirectoryW;
|
||||
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
|
||||
{
|
||||
|
@ -355,11 +355,6 @@ typedef struct
|
||||
} http_request_t;
|
||||
|
||||
|
||||
struct WORKREQ_FTPCREATEDIRECTORYW
|
||||
{
|
||||
LPWSTR lpszDirectory;
|
||||
};
|
||||
|
||||
struct WORKREQ_FTPFINDFIRSTFILEW
|
||||
{
|
||||
LPWSTR lpszSearchFile;
|
||||
@ -422,7 +417,6 @@ typedef struct WORKREQ
|
||||
object_header_t *hdr;
|
||||
|
||||
union {
|
||||
struct WORKREQ_FTPCREATEDIRECTORYW FtpCreateDirectoryW;
|
||||
struct WORKREQ_FTPFINDFIRSTFILEW FtpFindFirstFileW;
|
||||
struct WORKREQ_FTPGETCURRENTDIRECTORYW FtpGetCurrentDirectoryW;
|
||||
struct WORKREQ_FTPOPENFILEW FtpOpenFileW;
|
||||
|
Loading…
Reference in New Issue
Block a user