wininet: Use proc instead of enum in FTPFINDNEXTW request.

This commit is contained in:
Jacek Caban 2006-12-25 21:36:46 +01:00 committed by Alexandre Julliard
parent 3a08f1f656
commit f08ff892be
2 changed files with 14 additions and 16 deletions

View File

@ -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,10 +947,11 @@ BOOL WINAPI InternetFindNextFileW(HINTERNET hFind, LPVOID lpvFindData)
WORKREQUEST workRequest;
struct WORKREQ_FTPFINDNEXTW *req;
workRequest.asyncall = FTPFINDNEXTW;
workRequest.hdr = WININET_AddRef( &lpwh->hdr );
workRequest.asyncall = CALLASYNCPROC;
workRequest.asyncproc = AsyncFtpFindNextFileProc;
workRequest.hdr = WININET_AddRef( &lpwh->hdr );
req = &workRequest.u.FtpFindNextW;
req->lpFindFileData = lpvFindData;
req->lpFindFileData = lpvFindData;
bSuccess = INTERNET_AsyncCall(&workRequest);
}
@ -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 );
}

View File

@ -250,7 +250,6 @@ typedef struct
typedef enum
{
CALLASYNCPROC,
FTPFINDNEXTW,
} ASYNC_FUNC;
struct WORKREQ_FTPPUTFILEW