Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9efb87ea
Commit
9efb87ea
authored
Sep 01, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added IActiveScript::Close implementation.
parent
268a92be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
jscript.c
dlls/jscript/jscript.c
+17
-4
No files found.
dlls/jscript/jscript.c
View file @
9efb87ea
...
...
@@ -120,10 +120,10 @@ static ULONG WINAPI JScript_Release(IActiveScript *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
iface
,
ref
);
if
(
!
ref
)
{
if
(
This
->
ctx
&&
This
->
ctx
->
state
!=
SCRIPTSTATE_CLOSED
)
IActiveScript_Close
(
ACTSCRIPT
(
This
));
if
(
This
->
ctx
)
script_release
(
This
->
ctx
);
if
(
This
->
site
)
IActiveScriptSite_Release
(
This
->
site
);
heap_free
(
This
);
unlock_module
();
}
...
...
@@ -191,8 +191,21 @@ static HRESULT WINAPI JScript_GetScriptState(IActiveScript *iface, SCRIPTSTATE *
static
HRESULT
WINAPI
JScript_Close
(
IActiveScript
*
iface
)
{
JScript
*
This
=
ACTSCRIPT_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->()
\n
"
,
This
);
if
(
This
->
thread_id
!=
GetCurrentThreadId
())
return
E_UNEXPECTED
;
if
(
This
->
ctx
)
change_state
(
This
,
SCRIPTSTATE_CLOSED
);
if
(
This
->
site
)
{
IActiveScriptSite_Release
(
This
->
site
);
This
->
site
=
NULL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
JScript_AddNamedItem
(
IActiveScript
*
iface
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment