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
39bc1faa
Commit
39bc1faa
authored
Apr 03, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Correctly set next hash table offset.
parent
dedd42fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
urlcache.c
dlls/wininet/urlcache.c
+4
-2
No files found.
dlls/wininet/urlcache.c
View file @
39bc1faa
...
...
@@ -1323,7 +1323,7 @@ static DWORD URLCache_AddEntryToHash(LPURLCACHE_HEADER pHeader, LPCSTR lpszUrl,
DWORD
key
=
URLCache_HashKey
(
lpszUrl
);
DWORD
offset
=
(
key
&
(
HASHTABLE_NUM_ENTRIES
-
1
))
*
HASHTABLE_BLOCKSIZE
;
HASH_CACHEFILE_ENTRY
*
pHashEntry
;
HASH_CACHEFILE_ENTRY
*
pHashEntry
,
*
pHashPrev
=
NULL
;
DWORD
dwHashTableNumber
=
0
;
DWORD
error
;
...
...
@@ -1334,6 +1334,8 @@ static DWORD URLCache_AddEntryToHash(LPURLCACHE_HEADER pHeader, LPCSTR lpszUrl,
pHashEntry
=
URLCache_HashEntryFromOffset
(
pHeader
,
pHashEntry
->
dwAddressNext
))
{
int
i
;
pHashPrev
=
pHashEntry
;
if
(
pHashEntry
->
dwHashTableNumber
!=
dwHashTableNumber
++
)
{
ERR
(
"not right hash table number (%d) expected %d
\n
"
,
pHashEntry
->
dwHashTableNumber
,
dwHashTableNumber
);
...
...
@@ -1357,7 +1359,7 @@ static DWORD URLCache_AddEntryToHash(LPURLCACHE_HEADER pHeader, LPCSTR lpszUrl,
}
}
}
error
=
URLCache_CreateHashTable
(
pHeader
,
pHash
Entry
,
&
pHashEntry
);
error
=
URLCache_CreateHashTable
(
pHeader
,
pHash
Prev
,
&
pHashEntry
);
if
(
error
!=
ERROR_SUCCESS
)
return
error
;
...
...
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