[PATCH 2/5] jscript: Also clear the thread_id if the script state is set to Closed.

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Nov 6 09:28:00 CST 2019


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 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 75eef39..2a7c028 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) {
-- 
2.21.0




More information about the wine-devel mailing list