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
eff0aecc
Commit
eff0aecc
authored
Jul 01, 2010
by
Austin English
Committed by
Alexandre Julliard
Jul 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Avoid size_t in ERR().
parent
afdc767c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cookie.c
dlls/wininet/cookie.c
+2
-2
No files found.
dlls/wininet/cookie.c
View file @
eff0aecc
...
@@ -431,7 +431,7 @@ static BOOL set_cookie(LPCWSTR domain, LPCWSTR path, LPCWSTR cookie_name, LPCWST
...
@@ -431,7 +431,7 @@ static BOOL set_cookie(LPCWSTR domain, LPCWSTR path, LPCWSTR cookie_name, LPCWST
value
=
data
=
heap_strdupW
(
cookie_data
);
value
=
data
=
heap_strdupW
(
cookie_data
);
if
(
!
data
)
if
(
!
data
)
{
{
ERR
(
"could not allocate
%zu bytes for the cookie data buffer
\n
"
,
(
strlenW
(
cookie_data
)
+
1
)
*
sizeof
(
WCHAR
)
);
ERR
(
"could not allocate
the cookie data buffer
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -457,7 +457,7 @@ static BOOL set_cookie(LPCWSTR domain, LPCWSTR path, LPCWSTR cookie_name, LPCWST
...
@@ -457,7 +457,7 @@ static BOOL set_cookie(LPCWSTR domain, LPCWSTR path, LPCWSTR cookie_name, LPCWST
if
(
value
==
NULL
)
if
(
value
==
NULL
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
data
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
ERR
(
"could not allocate
%zu bytes for the cookie value buffer
\n
"
,
(
ptr
-
data
)
*
sizeof
(
WCHAR
)
);
ERR
(
"could not allocate
the cookie value buffer
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
strcpyW
(
value
,
data
);
strcpyW
(
value
,
data
);
...
...
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