mirror of
https://github.com/reactos/wine.git
synced 2024-12-01 15:40:43 +00:00
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));
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user