wininet: Store WININETAPPINFOW pointer in WININETHTTPSESSIONW.

This commit is contained in:
Jacek Caban 2006-10-29 18:48:48 +01:00 committed by Alexandre Julliard
parent 1af1ead894
commit c250617d88
2 changed files with 6 additions and 0 deletions

View File

@ -2405,6 +2405,9 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
lpwhs->hdr.destroy = HTTP_CloseHTTPSessionHandle;
lpwhs->hdr.lpfnStatusCB = hIC->hdr.lpfnStatusCB;
WININET_AddRef( &hIC->hdr );
lpwhs->lpAppInfo = hIC;
handle = WININET_AllocHandle( &lpwhs->hdr );
if (NULL == handle)
{
@ -2967,6 +2970,8 @@ static void HTTP_CloseHTTPSessionHandle(LPWININETHANDLEHEADER hdr)
TRACE("%p\n", lpwhs);
WININET_Release(&lpwhs->lpAppInfo->hdr);
HeapFree(GetProcessHeap(), 0, lpwhs->lpszHostName);
HeapFree(GetProcessHeap(), 0, lpwhs->lpszServerName);
HeapFree(GetProcessHeap(), 0, lpwhs->lpszUserName);

View File

@ -165,6 +165,7 @@ typedef struct
typedef struct
{
WININETHANDLEHEADER hdr;
WININETAPPINFOW *lpAppInfo;
LPWSTR lpszHostName; /* the final destination of the request */
LPWSTR lpszServerName; /* the name of the server we directly connect to */
LPWSTR lpszUserName;