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
2f3f9739
Commit
2f3f9739
authored
Apr 01, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Support Punycode in DeleteUrlCacheEntryW.
parent
6f35d68f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
47 deletions
+4
-47
urlcache.c
dlls/wininet/urlcache.c
+4
-47
No files found.
dlls/wininet/urlcache.c
View file @
2f3f9739
...
...
@@ -3477,57 +3477,14 @@ BOOL WINAPI DeleteUrlCacheEntryA(LPCSTR lpszUrlName)
*/
BOOL
WINAPI
DeleteUrlCacheEntryW
(
LPCWSTR
lpszUrlName
)
{
cache_container
*
pContainer
;
urlcache_header
*
pHeader
;
struct
hash_entry
*
pHashEntry
;
LPSTR
urlA
;
DWORD
error
;
char
*
url
;
BOOL
ret
;
TRACE
(
"(%s)
\n
"
,
debugstr_w
(
lpszUrlName
));
urlA
=
heap_strdupWtoA
(
lpszUrlName
);
if
(
!
urlA
)
{
SetLastError
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
error
=
cache_containers_findW
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
heap_free
(
urlA
);
SetLastError
(
error
);
return
FALSE
;
}
error
=
cache_container_open_index
(
pContainer
,
MIN_BLOCK_NO
);
if
(
error
!=
ERROR_SUCCESS
)
{
heap_free
(
urlA
);
SetLastError
(
error
);
return
FALSE
;
}
if
(
!
(
pHeader
=
cache_container_lock_index
(
pContainer
)))
{
heap_free
(
urlA
);
return
FALSE
;
}
if
(
!
urlcache_find_hash_entry
(
pHeader
,
urlA
,
&
pHashEntry
))
{
cache_container_unlock_index
(
pContainer
,
pHeader
);
TRACE
(
"entry %s not found!
\n
"
,
debugstr_a
(
urlA
));
heap_free
(
urlA
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
if
(
!
urlcache_encode_url_alloc
(
lpszUrlName
,
&
url
))
return
FALSE
;
}
ret
=
urlcache_entry_delete
(
pContainer
,
pHeader
,
pHashEntry
);
cache_container_unlock_index
(
pContainer
,
pHeader
);
heap_free
(
urlA
);
ret
=
DeleteUrlCacheEntryA
(
url
);
heap_free
(
url
);
return
ret
;
}
...
...
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