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
255eebe4
Commit
255eebe4
authored
May 08, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
May 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Handle NULL input for FindCloseUrlCache.
parent
382ed33b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
urlcache.c
dlls/wininet/tests/urlcache.c
+11
-0
urlcache.c
dlls/wininet/urlcache.c
+1
-1
No files found.
dlls/wininet/tests/urlcache.c
View file @
255eebe4
...
...
@@ -166,7 +166,18 @@ static void test_urlcacheA(void)
ok
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"local file should no longer exist
\n
"
);
}
static
void
test_FindCloseUrlCache
(
void
)
{
BOOL
r
;
DWORD
err
;
r
=
FindCloseUrlCache
(
NULL
);
err
=
GetLastError
();
ok
(
0
==
r
,
"expected 0, got %d
\n
"
,
r
);
ok
(
ERROR_INVALID_HANDLE
==
err
,
"expected %d, got %d
\n
"
,
ERROR_INVALID_HANDLE
,
err
);
}
START_TEST
(
urlcache
)
{
test_urlcacheA
();
test_FindCloseUrlCache
();
}
dlls/wininet/urlcache.c
View file @
255eebe4
...
...
@@ -3127,7 +3127,7 @@ BOOL WINAPI FindCloseUrlCache(HANDLE hEnumHandle)
TRACE
(
"(%p)
\n
"
,
hEnumHandle
);
if
(
pEntryHandle
->
dwMagic
!=
URLCACHE_FIND_ENTRY_HANDLE_MAGIC
)
if
(
!
pEntryHandle
||
pEntryHandle
->
dwMagic
!=
URLCACHE_FIND_ENTRY_HANDLE_MAGIC
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
...
...
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