wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW.

This commit is contained in:
Jacek Caban 2006-10-29 18:50:25 +01:00 committed by Alexandre Julliard
parent a541a44f51
commit a9bdc01e19
2 changed files with 6 additions and 0 deletions

View File

@ -1009,6 +1009,9 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
lpwhr->hdr.destroy = HTTP_CloseHTTPRequestHandle;
lpwhr->hdr.lpfnStatusCB = lpwhs->hdr.lpfnStatusCB;
WININET_AddRef( &lpwhs->hdr );
lpwhr->lpHttpSession = lpwhs;
handle = WININET_AllocHandle( &lpwhr->hdr );
if (NULL == handle)
{
@ -2938,6 +2941,8 @@ static void HTTP_CloseHTTPRequestHandle(LPWININETHANDLEHEADER hdr)
TRACE("\n");
WININET_Release(&lpwhr->hdr);
if (NETCON_connected(&lpwhr->netConnection))
HTTP_CloseConnection(lpwhr);

View File

@ -190,6 +190,7 @@ typedef struct
typedef struct
{
WININETHANDLEHEADER hdr;
WININETHTTPSESSIONW *lpHttpSession;
LPWSTR lpszPath;
LPWSTR lpszVerb;
LPWSTR lpszRawHeaders;