wininet: Increment file use count when committing a URL cache entry.
This commit is contained in:
parent
429407cfb6
commit
6e713b3946
|
@ -2633,6 +2633,11 @@ static BOOL CommitUrlCacheEntryInternal(
|
||||||
(DWORD)((LPBYTE)pUrlEntry - (LPBYTE)pHeader));
|
(DWORD)((LPBYTE)pUrlEntry - (LPBYTE)pHeader));
|
||||||
if (error != ERROR_SUCCESS)
|
if (error != ERROR_SUCCESS)
|
||||||
URLCache_DeleteEntry(pHeader, &pUrlEntry->CacheFileEntry);
|
URLCache_DeleteEntry(pHeader, &pUrlEntry->CacheFileEntry);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (pUrlEntry->CacheDir < pHeader->DirectoryCount)
|
||||||
|
pHeader->directory_data[pUrlEntry->CacheDir].dwNumFiles++;
|
||||||
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
URLCacheContainer_UnlockIndex(pContainer, pHeader);
|
URLCacheContainer_UnlockIndex(pContainer, pHeader);
|
||||||
|
|
Loading…
Reference in New Issue