wininet: Store WININETAPPINFOW pointer in WININETFTPSESSIONW.

This commit is contained in:
Jacek Caban 2006-10-29 18:52:02 +01:00 committed by Alexandre Julliard
parent 61a1cef6f6
commit 96c0c6c5d9
2 changed files with 6 additions and 0 deletions

View File

@ -1728,6 +1728,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
lpwfs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB;
lpwfs->download_in_progress = NULL;
WININET_AddRef( &hIC->hdr );
lpwfs->lpAppInfo = hIC;
handle = WININET_AllocHandle( &lpwfs->hdr );
if( !handle )
{
@ -2685,6 +2688,8 @@ static void FTP_CloseSessionHandle(LPWININETHANDLEHEADER hdr)
TRACE("\n");
WININET_Release(&lpwfs->lpAppInfo->hdr);
if (lpwfs->download_in_progress != NULL)
lpwfs->download_in_progress->session_deleted = TRUE;

View File

@ -213,6 +213,7 @@ typedef struct
typedef struct
{
WININETHANDLEHEADER hdr;
WININETAPPINFOW *lpAppInfo;
int sndSocket;
int lstnSocket;
int pasvSocket; /* data socket connected by us in case of passive FTP */