wininet: Store WININETAPPINFOW pointer in WININETFTPSESSIONW.
This commit is contained in:
parent
61a1cef6f6
commit
96c0c6c5d9
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue