From 7c15dc50a246d788c993736f10b60a567ce98afc Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 8 Mar 2011 08:04:22 -0800 Subject: [PATCH] wininet: Account for disk space used by cache. --- dlls/wininet/urlcache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index f099fa5ad13..e8883605301 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -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: