mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wininet: Store WININETAPPINFOW pointer in WININETHTTPSESSIONW.
This commit is contained in:
parent
1af1ead894
commit
c250617d88
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user