Sebastian Lackner : jscript: Use list_head get first entry of list.

Alexandre Julliard julliard at winehq.org
Thu Jul 7 09:48:23 CDT 2016


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

Author: Sebastian Lackner <sebastian at 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 at fds-team.de>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
     }




More information about the wine-cvs mailing list