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
1b42c007
Commit
1b42c007
authored
Oct 22, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Pass hash entry directly to URLCache_DeleteEntryFromHash.
parent
d448a2ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
urlcache.c
dlls/wininet/urlcache.c
+6
-11
No files found.
dlls/wininet/urlcache.c
View file @
1b42c007
...
...
@@ -1210,16 +1210,11 @@ static BOOL URLCache_HashEntrySetUse(struct _HASH_ENTRY * pHashEntry, DWORD dwUs
* FALSE if the entry could not be found
*
*/
static
BOOL
URLCache_DeleteEntryFromHash
(
LPCURLCACHE_HEADER
pHeader
,
LPCSTR
lpszUrl
)
static
BOOL
URLCache_DeleteEntryFromHash
(
struct
_HASH_ENTRY
*
pHashEntry
)
{
struct
_HASH_ENTRY
*
pHashEntry
;
if
(
URLCache_FindHash
(
pHeader
,
lpszUrl
,
&
pHashEntry
))
{
pHashEntry
->
dwHashKey
=
HASHTABLE_FREE
;
pHashEntry
->
dwOffsetEntry
=
HASHTABLE_FREE
;
return
TRUE
;
}
return
FALSE
;
pHashEntry
->
dwHashKey
=
HASHTABLE_FREE
;
pHashEntry
->
dwOffsetEntry
=
HASHTABLE_FREE
;
return
TRUE
;
}
/***********************************************************************
...
...
@@ -2597,7 +2592,7 @@ BOOL WINAPI DeleteUrlCacheEntryA(LPCSTR lpszUrlName)
pEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pHeader
+
pHashEntry
->
dwOffsetEntry
);
URLCache_DeleteEntry
(
pHeader
,
pEntry
);
URLCache_DeleteEntryFromHash
(
pH
eader
,
lpszUrlName
);
URLCache_DeleteEntryFromHash
(
pH
ashEntry
);
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
...
...
@@ -2656,7 +2651,7 @@ BOOL WINAPI DeleteUrlCacheEntryW(LPCWSTR lpszUrlName)
pEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pHeader
+
pHashEntry
->
dwOffsetEntry
);
URLCache_DeleteEntry
(
pHeader
,
pEntry
);
URLCache_DeleteEntryFromHash
(
pH
eader
,
urlA
);
URLCache_DeleteEntryFromHash
(
pH
ashEntry
);
URLCacheContainer_UnlockIndex
(
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