Commit 7e841432 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

wininet: Don't crash by debug printing too long URLs.

parent 0a1da6bc
...@@ -2562,7 +2562,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(LPCSTR lpszUrlName, DWORD dwReserved) ...@@ -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) ...@@ -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;
} }
......
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