Sebastian Lackner : jscript: Use list_head get first entry of list.
Module: wine Branch: master Commit: b2e58b4c7c15815840b563df7b2d0ca8bdd7017e URL: http://source.winehq.org/git/wine.git/?a=commit;h=b2e58b4c7c15815840b563df7b... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Thu Jul 7 05:40:55 2016 +0200 jscript: Use list_head get first entry of list. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/jscript/jsutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/jscript/jsutils.c b/dlls/jscript/jsutils.c index 59dbc65..447b7c6 100644 --- a/dlls/jscript/jsutils.c +++ b/dlls/jscript/jsutils.c @@ -148,7 +148,7 @@ void heap_pool_clear(heap_pool_t *heap) if(!heap) return; - while((tmp = list_next(&heap->custom_blocks, &heap->custom_blocks))) { + while((tmp = list_head(&heap->custom_blocks))) { list_remove(tmp); heap_free(tmp); }
participants (1)
-
Alexandre Julliard