Commit a9bdc01e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW.

parent a541a44f
......@@ -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);
......
......@@ -190,6 +190,7 @@ typedef struct
typedef struct
{
WININETHANDLEHEADER hdr;
WININETHTTPSESSIONW *lpHttpSession;
LPWSTR lpszPath;
LPWSTR lpszVerb;
LPWSTR lpszRawHeaders;
......
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