wininet: Use random names when caching very long urls.

This commit is contained in:
Michael Müller 2015-05-28 22:47:20 +02:00 committed by Alexandre Julliard
parent 060d8a4638
commit 9564940461
1 changed files with 1 additions and 1 deletions

View File

@ -2630,7 +2630,7 @@ static BOOL urlcache_entry_create(const char *url, const char *ext, WCHAR *full_
if(!InternetCrackUrlA(url, 0, 0, &uc))
uc.dwUrlPathLength = 0;
if(!uc.dwUrlPathLength) {
if(!uc.dwUrlPathLength || uc.dwUrlPathLength >= sizeof(file_name)) {
file_name[0] = 0;
}else {
char *p, *e;