From 6e713b3946b292f5da42a966b3aa65a78afae034 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Sun, 6 Mar 2011 10:07:17 -0800 Subject: [PATCH] wininet: Increment file use count when committing a URL cache entry. --- dlls/wininet/urlcache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index ad439dd496c..de31ff6e44c 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -2633,6 +2633,11 @@ static BOOL CommitUrlCacheEntryInternal( (DWORD)((LPBYTE)pUrlEntry - (LPBYTE)pHeader)); if (error != ERROR_SUCCESS) URLCache_DeleteEntry(pHeader, &pUrlEntry->CacheFileEntry); + else + { + if (pUrlEntry->CacheDir < pHeader->DirectoryCount) + pHeader->directory_data[pUrlEntry->CacheDir].dwNumFiles++; + } cleanup: URLCacheContainer_UnlockIndex(pContainer, pHeader);