Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a24b8267
Commit
a24b8267
authored
Jul 25, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Improved cookie debug traces.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6fd7e75d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
cookie.c
dlls/wininet/cookie.c
+3
-7
No files found.
dlls/wininet/cookie.c
View file @
a24b8267
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment