wininet: Use random names when caching very long urls.
This commit is contained in:
parent
060d8a4638
commit
9564940461
|
@ -2630,7 +2630,7 @@ static BOOL urlcache_entry_create(const char *url, const char *ext, WCHAR *full_
|
||||||
if(!InternetCrackUrlA(url, 0, 0, &uc))
|
if(!InternetCrackUrlA(url, 0, 0, &uc))
|
||||||
uc.dwUrlPathLength = 0;
|
uc.dwUrlPathLength = 0;
|
||||||
|
|
||||||
if(!uc.dwUrlPathLength) {
|
if(!uc.dwUrlPathLength || uc.dwUrlPathLength >= sizeof(file_name)) {
|
||||||
file_name[0] = 0;
|
file_name[0] = 0;
|
||||||
}else {
|
}else {
|
||||||
char *p, *e;
|
char *p, *e;
|
||||||
|
|
Loading…
Reference in New Issue