Jacek Caban : wininet: Improved cookie debug traces.
Alexandre Julliard
julliard at winehq.org
Tue Jul 25 16:11:26 CDT 2017
Module: wine
Branch: master
Commit: a24b8267d508d27243a31e582e764949c88ad9ee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a24b8267d508d27243a31e582e764949c88ad9ee
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Jul 25 13:13:15 2017 +0200
wininet: Improved cookie debug traces.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wininet/cookie.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c
index 5da9710..60b8335 100644
--- a/dlls/wininet/cookie.c
+++ b/dlls/wininet/cookie.c
@@ -560,18 +560,12 @@ static DWORD get_cookie(substr_t host, substr_t path, DWORD flags, cookie_set_t
}
for(domain = get_cookie_domain(host, FALSE); domain; domain = domain->parent) {
- TRACE("Trying %s domain...\n", debugstr_w(domain->domain));
-
LIST_FOR_EACH_ENTRY(container, &domain->path_list, cookie_container_t, entry) {
struct list *cursor, *cursor2;
- TRACE("path %s\n", debugstr_wn(container->path.str, container->path.len));
-
if(!cookie_match_path(container, path))
continue;
- TRACE("found domain %p\n", domain->domain);
-
LIST_FOR_EACH_SAFE(cursor, cursor2, &container->cookie_list) {
cookie_t *cookie_iter = LIST_ENTRY(cursor, cookie_t, entry);
@@ -586,7 +580,6 @@ static DWORD get_cookie(substr_t host, substr_t path, DWORD flags, cookie_set_t
if((cookie_iter->flags & INTERNET_COOKIE_HTTPONLY) && !(flags & INTERNET_COOKIE_HTTPONLY))
continue;
-
if(!res->size) {
res->cookies = heap_alloc(4*sizeof(*res->cookies));
if(!res->cookies)
@@ -600,6 +593,9 @@ static DWORD get_cookie(substr_t host, substr_t path, DWORD flags, cookie_set_t
res->size *= 2;
}
+ TRACE("%s = %s domain %s path %s\n", debugstr_w(cookie_iter->name), debugstr_w(cookie_iter->data),
+ debugstr_w(domain->domain), debugstr_wn(container->path.str, container->path.len));
+
if(res->cnt)
res->string_len += 2; /* '; ' */
res->cookies[res->cnt++] = cookie_iter;
More information about the wine-cvs
mailing list