wininet: Increment file use count when committing a URL cache entry.

This commit is contained in:
Juan Lang 2011-03-06 10:07:17 -08:00 committed by Alexandre Julliard
parent 429407cfb6
commit 6e713b3946

View File

@ -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);