mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:49:49 +00:00
jscript: Also clear the thread_id if the script state is set to Closed.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
15fce35b59
commit
d8e8d1639f
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue