Module: wine Branch: master Commit: a9bdc01e19ee5896706634ca5e633d136b81f60f URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9bdc01e19ee5896706634ca5e...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Oct 29 18:50:25 2006 +0100
wininet: Store pointer to WININETHTTPSESSIONW in WININETHTTPREQUESTW.
---
dlls/wininet/http.c | 5 +++++ dlls/wininet/internet.h | 1 + 2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 2d39608..cfbda27 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1009,6 +1009,9 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(L 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(
TRACE("\n");
+ WININET_Release(&lpwhr->hdr); + if (NETCON_connected(&lpwhr->netConnection)) HTTP_CloseConnection(lpwhr);
diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index 9c4e7d2..de53717 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h @@ -190,6 +190,7 @@ typedef struct typedef struct { WININETHANDLEHEADER hdr; + WININETHTTPSESSIONW *lpHttpSession; LPWSTR lpszPath; LPWSTR lpszVerb; LPWSTR lpszRawHeaders;