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
c527c761
Commit
c527c761
authored
Oct 19, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Implement DeleteUrlCacheEntryW.
parent
d1559158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
urlcache.c
dlls/wininet/urlcache.c
+49
-1
No files found.
dlls/wininet/urlcache.c
View file @
c527c761
...
...
@@ -2528,7 +2528,55 @@ BOOL WINAPI DeleteUrlCacheEntryA(LPCSTR lpszUrlName)
*/
BOOL
WINAPI
DeleteUrlCacheEntryW
(
LPCWSTR
lpszUrlName
)
{
FIXME
(
"(%s) stub
\n
"
,
debugstr_w
(
lpszUrlName
));
URLCACHECONTAINER
*
pContainer
;
LPURLCACHE_HEADER
pHeader
;
CACHEFILE_ENTRY
*
pEntry
;
LPSTR
urlA
;
int
url_len
;
TRACE
(
"(%s)
\n
"
,
debugstr_w
(
lpszUrlName
));
url_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszUrlName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
urlA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
url_len
*
sizeof
(
CHAR
));
if
(
!
urlA
)
{
SetLastError
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
WideCharToMultiByte
(
CP_ACP
,
0
,
lpszUrlName
,
-
1
,
urlA
,
url_len
,
NULL
,
NULL
);
if
(
!
URLCacheContainers_FindContainerW
(
lpszUrlName
,
&
pContainer
))
{
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
return
FALSE
;
}
if
(
!
URLCacheContainer_OpenIndex
(
pContainer
))
{
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
return
FALSE
;
}
if
(
!
(
pHeader
=
URLCacheContainer_LockIndex
(
pContainer
)))
{
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
return
FALSE
;
}
if
(
!
URLCache_FindEntryInHash
(
pHeader
,
urlA
,
&
pEntry
))
{
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
TRACE
(
"entry %s not found!
\n
"
,
debugstr_a
(
urlA
));
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
SetLastError
(
ERROR_FILE_NOT_FOUND
);
return
FALSE
;
}
URLCache_DeleteEntry
(
pHeader
,
pEntry
);
URLCache_DeleteEntryFromHash
(
pHeader
,
urlA
);
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
HeapFree
(
GetProcessHeap
(),
0
,
urlA
);
return
TRUE
;
}
...
...
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