Piotr Caban : wininet: Mark empty fields in the same way while hash table is created and element is removed .

Alexandre Julliard julliard at winehq.org
Tue Apr 3 12:17:40 CDT 2012


Module: wine
Branch: master
Commit: edcc395dac99cf9d66f9c334284c471b7d010f19
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=edcc395dac99cf9d66f9c334284c471b7d010f19

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Apr  3 16:45:29 2012 +0200

wininet: Mark empty fields in the same way while hash table is created and element is removed.

---

 dlls/wininet/urlcache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 9e1f779..3a404c8 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -1401,7 +1401,7 @@ static DWORD URLCache_CreateHashTable(LPURLCACHE_HEADER pHeader, HASH_CACHEFILE_
     (*ppHash)->dwHashTableNumber = pPrevHash ? pPrevHash->dwHashTableNumber + 1 : 0;
     for (i = 0; i < HASHTABLE_SIZE; i++)
     {
-        (*ppHash)->HashTable[i].dwOffsetEntry = 0;
+        (*ppHash)->HashTable[i].dwOffsetEntry = HASHTABLE_FREE;
         (*ppHash)->HashTable[i].dwHashKey = HASHTABLE_FREE;
     }
     return ERROR_SUCCESS;




More information about the wine-cvs mailing list