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
ab849ee2
Commit
ab849ee2
authored
Oct 03, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix GetUrlCacheEntryInfoA/W when a NULL lpCacheEntryInfo parameter is passed in.
parent
d929cdef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
urlcache.c
dlls/wininet/tests/urlcache.c
+5
-0
urlcache.c
dlls/wininet/urlcache.c
+6
-0
No files found.
dlls/wininet/tests/urlcache.c
View file @
ab849ee2
...
...
@@ -112,6 +112,11 @@ static void test_GetUrlCacheEntryInfoExA(void)
check_cache_entry_infoA
(
"GetUrlCacheEntryInfoEx"
,
lpCacheEntryInfo
);
cbCacheEntryInfo
=
100000
;
ret
=
GetUrlCacheEntryInfoEx
(
TEST_URL
,
NULL
,
&
cbCacheEntryInfo
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
!
ret
,
"GetUrlCacheEntryInfoEx with zero-length buffer should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"GetUrlCacheEntryInfoEx should have set last error to ERROR_INSUFFICIENT_BUFFER instead of %d
\n
"
,
GetLastError
());
HeapFree
(
GetProcessHeap
(),
0
,
lpCacheEntryInfo
);
}
...
...
dlls/wininet/urlcache.c
View file @
ab849ee2
...
...
@@ -1536,6 +1536,9 @@ BOOL WINAPI GetUrlCacheEntryInfoA(
if
(
lpdwCacheEntryInfoBufferSize
)
{
if
(
!
lpCacheEntryInfo
)
*
lpdwCacheEntryInfoBufferSize
=
0
;
error
=
URLCache_CopyEntry
(
pContainer
,
pHeader
,
...
...
@@ -1614,6 +1617,9 @@ BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrl,
if
(
lpdwCacheEntryInfoBufferSize
)
{
if
(
!
lpCacheEntryInfo
)
*
lpdwCacheEntryInfoBufferSize
=
0
;
error
=
URLCache_CopyEntry
(
pContainer
,
pHeader
,
...
...
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