wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW.
This commit is contained in:
parent
a541a44f51
commit
a9bdc01e19
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue