wininet: Use proc instead of enum in FTPFINDNEXTW request.
This commit is contained in:
parent
3a08f1f656
commit
f08ff892be
|
@ -915,6 +915,16 @@ BOOL WINAPI InternetFindNextFileA(HINTERNET hFind, LPVOID lpvFindData)
|
|||
* FALSE on failure
|
||||
*
|
||||
*/
|
||||
static void AsyncFtpFindNextFileProc(WORKREQUEST *workRequest)
|
||||
{
|
||||
struct WORKREQ_FTPFINDNEXTW *req = &workRequest->u.FtpFindNextW;
|
||||
LPWININETFTPFINDNEXTW lpwh = (LPWININETFTPFINDNEXTW) workRequest->hdr;
|
||||
|
||||
TRACE("%p\n", lpwh);
|
||||
|
||||
FTP_FindNextFileW(lpwh, req->lpFindFileData);
|
||||
}
|
||||
|
||||
BOOL WINAPI InternetFindNextFileW(HINTERNET hFind, LPVOID lpvFindData)
|
||||
{
|
||||
LPWININETAPPINFOW hIC = NULL;
|
||||
|
@ -937,7 +947,8 @@ BOOL WINAPI InternetFindNextFileW(HINTERNET hFind, LPVOID lpvFindData)
|
|||
WORKREQUEST workRequest;
|
||||
struct WORKREQ_FTPFINDNEXTW *req;
|
||||
|
||||
workRequest.asyncall = FTPFINDNEXTW;
|
||||
workRequest.asyncall = CALLASYNCPROC;
|
||||
workRequest.asyncproc = AsyncFtpFindNextFileProc;
|
||||
workRequest.hdr = WININET_AddRef( &lpwh->hdr );
|
||||
req = &workRequest.u.FtpFindNextW;
|
||||
req->lpFindFileData = lpvFindData;
|
||||
|
@ -3242,18 +3253,6 @@ static VOID INTERNET_ExecuteWork(void)
|
|||
case CALLASYNCPROC:
|
||||
workRequest.asyncproc(&workRequest);
|
||||
break;
|
||||
|
||||
case FTPFINDNEXTW:
|
||||
{
|
||||
struct WORKREQ_FTPFINDNEXTW *req;
|
||||
LPWININETFTPFINDNEXTW lpwh = (LPWININETFTPFINDNEXTW) workRequest.hdr;
|
||||
|
||||
TRACE("INTERNETFINDNEXTW %p\n", lpwh);
|
||||
|
||||
req = &workRequest.u.FtpFindNextW;
|
||||
FTP_FindNextFileW(lpwh, req->lpFindFileData);
|
||||
}
|
||||
break;
|
||||
}
|
||||
WININET_Release( workRequest.hdr );
|
||||
}
|
||||
|
|
|
@ -250,7 +250,6 @@ typedef struct
|
|||
typedef enum
|
||||
{
|
||||
CALLASYNCPROC,
|
||||
FTPFINDNEXTW,
|
||||
} ASYNC_FUNC;
|
||||
|
||||
struct WORKREQ_FTPPUTFILEW
|
||||
|
|
Loading…
Reference in New Issue