Commit d8e8d163 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

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

parent 15fce35b
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment