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
8717c388
Commit
8717c388
authored
Sep 23, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Allow 'this' to be host object in invoke_value_proc.
parent
46118045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
function.c
dlls/jscript/function.c
+4
-6
No files found.
dlls/jscript/function.c
View file @
8717c388
...
...
@@ -257,21 +257,19 @@ static HRESULT invoke_constructor(script_ctx_t *ctx, FunctionInstance *function,
static
HRESULT
invoke_value_proc
(
script_ctx_t
*
ctx
,
FunctionInstance
*
function
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
caller
)
{
DispatchEx
*
this_obj
=
NULL
;
IDispatch
*
this_disp
;
vdisp_t
vthis
;
HRESULT
hres
;
this_disp
=
get_this
(
dp
);
if
(
this_disp
)
this_obj
=
iface_to_jsdisp
((
IUnknown
*
)
this_disp
);
set_disp
(
&
vthis
,
this_disp
);
else
set_jsdisp
(
&
vthis
,
ctx
->
script_disp
);
set_jsdisp
(
&
vthis
,
this_obj
?
this_obj
:
ctx
->
script_disp
);
hres
=
function
->
value_proc
(
ctx
,
&
vthis
,
flags
,
dp
,
retv
,
ei
,
caller
);
vdisp_release
(
&
vthis
);
if
(
this_obj
)
jsdisp_release
(
this_obj
);
vdisp_release
(
&
vthis
);
return
hres
;
}
...
...
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