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
6969a9b0
Commit
6969a9b0
authored
Dec 31, 2003
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Dec 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove URLCache_FindEntry() which is not used any longer.
parent
9655a5fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
urlcache.c
dlls/wininet/urlcache.c
+0
-56
No files found.
dlls/wininet/urlcache.c
View file @
6969a9b0
...
...
@@ -545,62 +545,6 @@ static inline void URLCache_Allocation_BlockAllocate(BYTE * AllocationTable, DWO
}
/***********************************************************************
* URLCache_FindEntry (Internal)
*
* Finds an entry without using the hash tables
*
* RETURNS
* TRUE if it found the specified entry
* FALSE otherwise
*
*/
static
BOOL
URLCache_FindEntry
(
LPCURLCACHE_HEADER
pHeader
,
LPCSTR
szUrl
,
CACHEFILE_ENTRY
**
ppEntry
)
{
CACHEFILE_ENTRY
*
pCurrentEntry
;
DWORD
dwBlockNumber
;
BYTE
*
AllocationTable
=
(
LPBYTE
)
pHeader
+
ALLOCATION_TABLE_OFFSET
;
for
(
pCurrentEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pHeader
+
ENTRY_START_OFFSET
);
(
DWORD
)((
LPBYTE
)
pCurrentEntry
-
(
LPBYTE
)
pHeader
)
<
pHeader
->
dwFileSize
;
pCurrentEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pCurrentEntry
+
pCurrentEntry
->
dwBlocksUsed
*
BLOCKSIZE
))
{
dwBlockNumber
=
(
DWORD
)((
LPBYTE
)
pCurrentEntry
-
(
LPBYTE
)
pHeader
-
ENTRY_START_OFFSET
)
/
BLOCKSIZE
;
while
(
URLCache_Allocation_BlockIsFree
(
AllocationTable
,
dwBlockNumber
))
{
if
(
dwBlockNumber
>=
pHeader
->
dwIndexCapacityInBlocks
)
return
FALSE
;
pCurrentEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pCurrentEntry
+
BLOCKSIZE
);
dwBlockNumber
=
(
DWORD
)((
LPBYTE
)
pCurrentEntry
-
(
LPBYTE
)
pHeader
-
ENTRY_START_OFFSET
)
/
BLOCKSIZE
;
}
switch
(
pCurrentEntry
->
dwSignature
)
{
case
URL_SIGNATURE
:
/* "URL " */
case
LEAK_SIGNATURE
:
/* "LEAK" */
{
URL_CACHEFILE_ENTRY
*
pUrlEntry
=
(
URL_CACHEFILE_ENTRY
*
)
pCurrentEntry
;
if
(
!
strcmp
(
szUrl
,
pUrlEntry
->
szSourceUrlName
))
{
*
ppEntry
=
pCurrentEntry
;
/* FIXME: should we update the LastAccessTime here? */
return
TRUE
;
}
}
break
;
case
HASH_SIGNATURE
:
/* HASH entries parsed in FindEntryInHash */
case
0xDEADBEEF
:
/* this is always at offset 0x4000 in URL cache for some reason */
break
;
default:
FIXME
(
"Unknown entry %.4s ignored
\n
"
,
(
LPCSTR
)
&
pCurrentEntry
->
dwSignature
);
}
}
return
FALSE
;
}
/***********************************************************************
* URLCache_FindFirstFreeEntry (Internal)
*
* Finds and allocates the first block of free space big enough and
...
...
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