Module: wine Branch: master Commit: 1eb2c5520c4b1d0813f8c020c741c1cc2b5152c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1eb2c5520c4b1d0813f8c020c7...
Author: Sebastian Lackner sebastian@fds-team.de Date: Thu Jul 7 05:39:46 2016 +0200
wininet: Use list_head get first entry of list.
Signed-off-by: Sebastian Lackner sebastian@fds-team.de Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 5421fe1..5da9710 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);