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
9609df86
Commit
9609df86
authored
Jul 12, 2014
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Do not omit mandatory argument to WriteFile.
parent
4707b448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
cookie.c
dlls/wininet/cookie.c
+8
-7
No files found.
dlls/wininet/cookie.c
View file @
9609df86
...
...
@@ -416,6 +416,7 @@ static BOOL save_persistent_cookie(cookie_container_t *container)
BOOL
do_save
=
FALSE
;
char
buf
[
64
],
*
dyn_buf
;
FILETIME
time
;
DWORD
bytes_written
;
if
(
!
create_cookie_url
(
container
->
domain
->
domain
,
container
->
path
,
cookie_url
,
sizeof
(
cookie_url
)
/
sizeof
(
cookie_url
[
0
])))
return
FALSE
;
...
...
@@ -454,31 +455,31 @@ static BOOL save_persistent_cookie(cookie_container_t *container)
continue
;
dyn_buf
=
heap_strdupWtoA
(
cookie_container
->
name
);
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
NULL
,
NULL
))
{
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
&
bytes_written
,
NULL
))
{
heap_free
(
dyn_buf
);
do_save
=
FALSE
;
break
;
}
heap_free
(
dyn_buf
);
if
(
!
WriteFile
(
cookie_handle
,
"
\n
"
,
1
,
NULL
,
NULL
))
{
if
(
!
WriteFile
(
cookie_handle
,
"
\n
"
,
1
,
&
bytes_written
,
NULL
))
{
do_save
=
FALSE
;
break
;
}
dyn_buf
=
heap_strdupWtoA
(
cookie_container
->
data
);
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
NULL
,
NULL
))
{
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
&
bytes_written
,
NULL
))
{
heap_free
(
dyn_buf
);
do_save
=
FALSE
;
break
;
}
heap_free
(
dyn_buf
);
if
(
!
WriteFile
(
cookie_handle
,
"
\n
"
,
1
,
NULL
,
NULL
))
{
if
(
!
WriteFile
(
cookie_handle
,
"
\n
"
,
1
,
&
bytes_written
,
NULL
))
{
do_save
=
FALSE
;
break
;
}
dyn_buf
=
heap_strdupWtoA
(
container
->
domain
->
domain
);
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
NULL
,
NULL
))
{
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
&
bytes_written
,
NULL
))
{
heap_free
(
dyn_buf
);
do_save
=
FALSE
;
break
;
...
...
@@ -486,7 +487,7 @@ static BOOL save_persistent_cookie(cookie_container_t *container)
heap_free
(
dyn_buf
);
dyn_buf
=
heap_strdupWtoA
(
container
->
path
);
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
NULL
,
NULL
))
{
if
(
!
dyn_buf
||
!
WriteFile
(
cookie_handle
,
dyn_buf
,
strlen
(
dyn_buf
),
&
bytes_written
,
NULL
))
{
heap_free
(
dyn_buf
);
do_save
=
FALSE
;
break
;
...
...
@@ -496,7 +497,7 @@ static BOOL save_persistent_cookie(cookie_container_t *container)
sprintf
(
buf
,
"
\n
%u
\n
%u
\n
%u
\n
%u
\n
%u
\n
*
\n
"
,
cookie_container
->
flags
,
cookie_container
->
expiry
.
dwLowDateTime
,
cookie_container
->
expiry
.
dwHighDateTime
,
cookie_container
->
create
.
dwLowDateTime
,
cookie_container
->
create
.
dwHighDateTime
);
if
(
!
WriteFile
(
cookie_handle
,
buf
,
strlen
(
buf
),
NULL
,
NULL
))
{
if
(
!
WriteFile
(
cookie_handle
,
buf
,
strlen
(
buf
),
&
bytes_written
,
NULL
))
{
do_save
=
FALSE
;
break
;
}
...
...
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