wininet: Don't crash by debug printing too long URLs.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0a1da6bce9
commit
7e841432ed
|
@ -2562,7 +2562,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(LPCSTR lpszUrlName, DWORD dwReserved)
|
||||||
if (!urlcache_find_hash_entry(pHeader, lpszUrlName, &pHashEntry))
|
if (!urlcache_find_hash_entry(pHeader, lpszUrlName, &pHashEntry))
|
||||||
{
|
{
|
||||||
cache_container_unlock_index(pContainer, pHeader);
|
cache_container_unlock_index(pContainer, pHeader);
|
||||||
TRACE("entry %s not found!\n", lpszUrlName);
|
TRACE("entry %s not found!\n", debugstr_a(lpszUrlName));
|
||||||
SetLastError(ERROR_FILE_NOT_FOUND);
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -3309,7 +3309,7 @@ BOOL WINAPI DeleteUrlCacheEntryA(LPCSTR lpszUrlName)
|
||||||
if (!urlcache_find_hash_entry(pHeader, lpszUrlName, &pHashEntry))
|
if (!urlcache_find_hash_entry(pHeader, lpszUrlName, &pHashEntry))
|
||||||
{
|
{
|
||||||
cache_container_unlock_index(pContainer, pHeader);
|
cache_container_unlock_index(pContainer, pHeader);
|
||||||
TRACE("entry %s not found!\n", lpszUrlName);
|
TRACE("entry %s not found!\n", debugstr_a(lpszUrlName));
|
||||||
SetLastError(ERROR_FILE_NOT_FOUND);
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue