Commit 96c0c6c5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Store WININETAPPINFOW pointer in WININETFTPSESSIONW.

parent 61a1cef6
...@@ -1728,6 +1728,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName, ...@@ -1728,6 +1728,9 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
lpwfs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB; lpwfs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB;
lpwfs->download_in_progress = NULL; lpwfs->download_in_progress = NULL;
WININET_AddRef( &hIC->hdr );
lpwfs->lpAppInfo = hIC;
handle = WININET_AllocHandle( &lpwfs->hdr ); handle = WININET_AllocHandle( &lpwfs->hdr );
if( !handle ) if( !handle )
{ {
...@@ -2685,6 +2688,8 @@ static void FTP_CloseSessionHandle(LPWININETHANDLEHEADER hdr) ...@@ -2685,6 +2688,8 @@ static void FTP_CloseSessionHandle(LPWININETHANDLEHEADER hdr)
TRACE("\n"); TRACE("\n");
WININET_Release(&lpwfs->lpAppInfo->hdr);
if (lpwfs->download_in_progress != NULL) if (lpwfs->download_in_progress != NULL)
lpwfs->download_in_progress->session_deleted = TRUE; lpwfs->download_in_progress->session_deleted = TRUE;
......
...@@ -213,6 +213,7 @@ typedef struct ...@@ -213,6 +213,7 @@ typedef struct
typedef struct typedef struct
{ {
WININETHANDLEHEADER hdr; WININETHANDLEHEADER hdr;
WININETAPPINFOW *lpAppInfo;
int sndSocket; int sndSocket;
int lstnSocket; int lstnSocket;
int pasvSocket; /* data socket connected by us in case of passive FTP */ int pasvSocket; /* data socket connected by us in case of passive FTP */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment