From 1eb2c5520c4b1d0813f8c020c741c1cc2b5152c9 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 7 Jul 2016 05:39:46 +0200 Subject: [PATCH] wininet: Use list_head get first entry of list. Signed-off-by: Sebastian Lackner Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/wininet/cookie.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index 5421fe1f386..5da9710b203 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -690,15 +690,15 @@ static void free_cookie_domain_list(struct list *list) cookie_domain_t *domain; while(!list_empty(list)) { - domain = LIST_ENTRY(list_next(list, list), cookie_domain_t, entry); + domain = LIST_ENTRY(list_head(list), cookie_domain_t, entry); free_cookie_domain_list(&domain->subdomain_list); while(!list_empty(&domain->path_list)) { - container = LIST_ENTRY(list_next(&domain->path_list, &domain->path_list), cookie_container_t, entry); + container = LIST_ENTRY(list_head(&domain->path_list), cookie_container_t, entry); while(!list_empty(&container->cookie_list)) - delete_cookie(LIST_ENTRY(list_next(&container->cookie_list, &container->cookie_list), cookie_t, entry)); + delete_cookie(LIST_ENTRY(list_head(&container->cookie_list), cookie_t, entry)); heap_free(container->cookie_url); list_remove(&container->entry);