jscript: Use list_head get first entry of list.

Sebastian Lackner sebastian at fds-team.de
Wed Jul 6 22:40:55 CDT 2016


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 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);
     }
-- 
2.8.0



More information about the wine-patches mailing list