Commit 7c15dc50 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wininet: Account for disk space used by cache.

parent d790688a
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment