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

Alexandre Julliard julliard at winehq.org
Wed Mar 12 17:23:57 CDT 2008


Module: wine
Branch: master
Commit: f1af593988fb35bd03192e7e2d0a1f4182dbf7ef
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f1af593988fb35bd03192e7e2d0a1f4182dbf7ef

Author: Rob Shearman <rob at codeweavers.com>
Date:   Wed Mar 12 13:44:14 2008 +0000

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

---

 dlls/wininet/urlcache.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index 7cb2f3c..c722b50 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -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))
         {




More information about the wine-cvs mailing list