wininet: Account for disk space used by cache.

This commit is contained in:
Juan Lang 2011-03-08 08:04:22 -08:00 committed by Alexandre Julliard
parent d790688afa
commit 7c15dc50a2
1 changed files with 3 additions and 0 deletions

View File

@ -2628,6 +2628,9 @@ static BOOL CommitUrlCacheEntryInternal(
{
if (pUrlEntry->CacheDir < pHeader->DirectoryCount)
pHeader->directory_data[pUrlEntry->CacheDir].dwNumFiles++;
pHeader->CacheUsage.QuadPart += file_size.QuadPart;
if (pHeader->CacheUsage.QuadPart > pHeader->CacheLimit.QuadPart)
FIXME("file of size %s bytes fills cache\n", wine_dbgstr_longlong(file_size.QuadPart));
}
cleanup: