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
ee47def0
Commit
ee47def0
authored
Oct 01, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added more fields to cookie structure.
parent
4e10456b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
cookie.c
dlls/wininet/cookie.c
+17
-4
No files found.
dlls/wininet/cookie.c
View file @
ee47def0
...
...
@@ -65,7 +65,9 @@ struct _cookie
LPWSTR
lpCookieName
;
LPWSTR
lpCookieData
;
DWORD
flags
;
FILETIME
expiry
;
FILETIME
create
;
};
struct
_cookie_domain
...
...
@@ -90,14 +92,25 @@ static void COOKIE_deleteDomain(cookie_domain *deadDomain);
static
cookie
*
COOKIE_addCookie
(
cookie_domain
*
domain
,
LPCWSTR
name
,
LPCWSTR
data
,
FILETIME
expiry
)
{
cookie
*
newCookie
=
heap_alloc
(
sizeof
(
cookie
));
if
(
!
newCookie
)
return
NULL
;
list_init
(
&
newCookie
->
entry
);
newCookie
->
lpCookieName
=
NULL
;
newCookie
->
lpCookieData
=
NULL
;
newCookie
->
expiry
=
expiry
;
newCookie
->
lpCookieName
=
heap_strdupW
(
name
);
newCookie
->
lpCookieData
=
heap_strdupW
(
data
);
if
(
!
newCookie
->
lpCookieName
||
!
newCookie
->
lpCookieData
)
{
heap_free
(
newCookie
->
lpCookieName
);
heap_free
(
newCookie
->
lpCookieData
);
heap_free
(
newCookie
);
return
NULL
;
}
newCookie
->
flags
=
0
;
/* TODO */
newCookie
->
expiry
=
expiry
;
GetSystemTimeAsFileTime
(
&
newCookie
->
create
);
TRACE
(
"added cookie %p (data is %s)
\n
"
,
newCookie
,
debugstr_w
(
data
)
);
list_add_tail
(
&
domain
->
cookie_list
,
&
newCookie
->
entry
);
...
...
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