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
b53b717d
Commit
b53b717d
authored
Jul 06, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Always set returned size in InternetGetCookieExA.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8332d806
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cookie.c
dlls/wininet/cookie.c
+2
-2
internet.c
dlls/wininet/tests/internet.c
+2
-0
No files found.
dlls/wininet/cookie.c
View file @
b53b717d
...
...
@@ -808,7 +808,7 @@ BOOL WINAPI InternetGetCookieExA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
LPSTR
lpCookieData
,
LPDWORD
lpdwSize
,
DWORD
flags
,
void
*
reserved
)
{
WCHAR
*
url
,
*
name
;
DWORD
len
,
size
;
DWORD
len
,
size
=
0
;
BOOL
r
;
TRACE
(
"(%s %s %p %p(%u) %x %p)
\n
"
,
debugstr_a
(
lpszUrl
),
debugstr_a
(
lpszCookieName
),
...
...
@@ -841,12 +841,12 @@ BOOL WINAPI InternetGetCookieExA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
r
=
FALSE
;
}
}
*
lpdwSize
=
size
;
}
heap_free
(
szCookieData
);
}
}
*
lpdwSize
=
size
;
heap_free
(
name
);
heap_free
(
url
);
return
r
;
...
...
dlls/wininet/tests/internet.c
View file @
b53b717d
...
...
@@ -360,11 +360,13 @@ static void test_get_cookie(void)
DWORD
len
;
BOOL
ret
;
len
=
1024
;
SetLastError
(
0xdeadbeef
);
ret
=
InternetGetCookieA
(
"http://www.example.com"
,
NULL
,
NULL
,
&
len
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_NO_MORE_ITEMS
,
"InternetGetCookie should have failed with %s and error %d
\n
"
,
ret
?
"TRUE"
:
"FALSE"
,
GetLastError
());
ok
(
!
len
,
"len = %u
\n
"
,
len
);
}
...
...
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