wininet: Use LIST_FOR_EACH_ENTRY in URLCacheContainers_FindContainerW instead of LIST_FOR_EACH and LIST_ENTRY.

This commit is contained in:
Rob Shearman 2008-03-12 13:44:14 +00:00 committed by Alexandre Julliard
parent 4041c2015b
commit f1af593988
1 changed files with 2 additions and 3 deletions

View File

@ -583,13 +583,12 @@ void URLCacheContainers_DeleteAll(void)
static BOOL URLCacheContainers_FindContainerW(LPCWSTR lpwszUrl, URLCACHECONTAINER ** ppContainer)
{
struct list * cursor;
URLCACHECONTAINER * pContainer;
TRACE("searching for prefix for URL: %s\n", debugstr_w(lpwszUrl));
LIST_FOR_EACH(cursor, &UrlContainers)
LIST_FOR_EACH_ENTRY(pContainer, &UrlContainers, URLCACHECONTAINER, entry)
{
URLCACHECONTAINER * pContainer = LIST_ENTRY(cursor, URLCACHECONTAINER, entry);
int prefix_len = strlenW(pContainer->cache_prefix);
if (!strncmpW(pContainer->cache_prefix, lpwszUrl, prefix_len))
{