Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
103693e4
Commit
103693e4
authored
Apr 24, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Load persistent cookies from other paths in get_cookie function.
parent
c9d1a190
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
cookie.c
dlls/wininet/cookie.c
+27
-2
No files found.
dlls/wininet/cookie.c
View file @
103693e4
...
...
@@ -533,8 +533,11 @@ static void COOKIE_deleteDomain(cookie_domain *deadDomain)
DWORD
get_cookie
(
const
WCHAR
*
host
,
const
WCHAR
*
path
,
WCHAR
*
cookie_data
,
DWORD
*
size
)
{
static
const
WCHAR
empty_path
[]
=
{
'/'
,
0
};
unsigned
cnt
=
0
,
len
,
name_len
,
domain_count
=
0
,
cookie_count
=
0
;
WCHAR
*
ptr
=
cookie_data
;
WCHAR
*
ptr
,
subpath
[
INTERNET_MAX_PATH_LENGTH
];
const
WCHAR
*
p
;
cookie_domain
*
domain
;
FILETIME
tm
;
...
...
@@ -542,8 +545,30 @@ DWORD get_cookie(const WCHAR *host, const WCHAR *path, WCHAR *cookie_data, DWORD
EnterCriticalSection
(
&
cookie_cs
);
load_persistent_cookie
(
host
,
path
);
len
=
strlenW
(
host
);
p
=
host
+
len
;
while
(
p
>
host
&&
p
[
-
1
]
!=
'.'
)
p
--
;
while
(
p
!=
host
)
{
p
--
;
while
(
p
>
host
&&
p
[
-
1
]
!=
'.'
)
p
--
;
if
(
p
==
host
)
break
;
load_persistent_cookie
(
p
,
empty_path
);
}
len
=
strlenW
(
path
);
assert
(
len
+
1
<
INTERNET_MAX_PATH_LENGTH
);
memcpy
(
subpath
,
path
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
ptr
=
subpath
+
len
;
do
{
*
ptr
=
0
;
load_persistent_cookie
(
host
,
subpath
);
ptr
--
;
while
(
ptr
>
subpath
&&
ptr
[
-
1
]
!=
'/'
)
ptr
--
;
}
while
(
ptr
!=
subpath
);
ptr
=
cookie_data
;
LIST_FOR_EACH_ENTRY
(
domain
,
&
domain_list
,
cookie_domain
,
entry
)
{
struct
list
*
cursor
,
*
cursor2
;
...
...
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