Gabriel Ivăncescu : jscript: Also clear the thread_id if the script state is set to Closed.

Alexandre Julliard julliard at winehq.org
Wed Nov 6 16:54:29 CST 2019


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

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Wed Nov  6 17:28:00 2019 +0200

jscript: Also clear the thread_id if the script state is set to Closed.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/jscript/jscript.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/jscript/jscript.c b/dlls/jscript/jscript.c
index 75eef39e35..2a7c028454 100644
--- a/dlls/jscript/jscript.c
+++ b/dlls/jscript/jscript.c
@@ -231,7 +231,7 @@ static void decrease_state(JScript *This, SCRIPTSTATE state)
         FIXME("NULL ctx\n");
     }
 
-    if(state == SCRIPTSTATE_UNINITIALIZED)
+    if(state == SCRIPTSTATE_UNINITIALIZED || state == SCRIPTSTATE_CLOSED)
         This->thread_id = 0;
 
     if(This->site) {




More information about the wine-cvs mailing list