Honour INTERNET_FLAG_NO_COOKIES
Robert Shearman
rob at codeweavers.com
Sat Jul 17 11:26:33 CDT 2004
Hi,
I don't think any applications depend on either the presence or absence
of this flag, but it simplifies debugging of applications that don't
require cookie handling (especially because of buggy cookie code - patch
coming soon).
Rob
Changelog:
Honour INTERNET_FLAG_NO_COOKIES.
-------------- next part --------------
Index: wine/dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.68
diff -u -r1.68 http.c
--- wine/dlls/wininet/http.c 16 Jul 2004 19:15:40 -0000 1.68
+++ wine/dlls/wininet/http.c 17 Jul 2004 16:22:52 -0000
@@ -729,7 +729,8 @@
lpszUrl = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
sprintfW( lpszUrl, szUrlForm, lpwhr->lpszHostName );
- if (InternetGetCookieW(lpszUrl, NULL, NULL, &nCookieSize))
+ if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_COOKIES) &&
+ InternetGetCookieW(lpszUrl, NULL, NULL, &nCookieSize))
{
int cnt = 0;
static const WCHAR szCookie[] = {'C','o','o','k','i','e',':',' ',0};
@@ -1681,7 +1682,7 @@
/* process headers here. Is this right? */
CustHeaderIndex = HTTP_GetCustomHeaderIndex(lpwhr, szSetCookie);
- if (CustHeaderIndex >= 0)
+ if (!(lpwhr->hdr.dwFlags & INTERNET_FLAG_NO_COOKIES) && (CustHeaderIndex >= 0))
{
LPHTTPHEADERW setCookieHeader;
int nPosStart = 0, nPosEnd = 0, len;
More information about the wine-patches
mailing list