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
614ea7e6
Commit
614ea7e6
authored
Jan 30, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use internal jsdisp calls only within the same script context.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
72246925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dispex.c
dlls/jscript/dispex.c
+4
-4
No files found.
dlls/jscript/dispex.c
View file @
614ea7e6
...
@@ -1951,7 +1951,7 @@ HRESULT disp_call(script_ctx_t *ctx, IDispatch *disp, DISPID id, WORD flags, uns
...
@@ -1951,7 +1951,7 @@ HRESULT disp_call(script_ctx_t *ctx, IDispatch *disp, DISPID id, WORD flags, uns
HRESULT
hres
;
HRESULT
hres
;
jsdisp
=
iface_to_jsdisp
(
disp
);
jsdisp
=
iface_to_jsdisp
(
disp
);
if
(
jsdisp
)
{
if
(
jsdisp
&&
jsdisp
->
ctx
==
ctx
)
{
if
(
flags
&
DISPATCH_PROPERTYPUT
)
{
if
(
flags
&
DISPATCH_PROPERTYPUT
)
{
FIXME
(
"disp_call(propput) on builtin object
\n
"
);
FIXME
(
"disp_call(propput) on builtin object
\n
"
);
return
E_FAIL
;
return
E_FAIL
;
...
@@ -2046,7 +2046,7 @@ HRESULT disp_call_value(script_ctx_t *ctx, IDispatch *disp, IDispatch *jsthis, W
...
@@ -2046,7 +2046,7 @@ HRESULT disp_call_value(script_ctx_t *ctx, IDispatch *disp, IDispatch *jsthis, W
assert
(
!
(
flags
&
~
(
DISPATCH_METHOD
|
DISPATCH_CONSTRUCT
|
DISPATCH_JSCRIPT_INTERNAL_MASK
)));
assert
(
!
(
flags
&
~
(
DISPATCH_METHOD
|
DISPATCH_CONSTRUCT
|
DISPATCH_JSCRIPT_INTERNAL_MASK
)));
jsdisp
=
iface_to_jsdisp
(
disp
);
jsdisp
=
iface_to_jsdisp
(
disp
);
if
(
jsdisp
)
{
if
(
jsdisp
&&
jsdisp
->
ctx
==
ctx
)
{
if
(
ctx
!=
jsdisp
->
ctx
)
if
(
ctx
!=
jsdisp
->
ctx
)
flags
&=
~
DISPATCH_JSCRIPT_INTERNAL_MASK
;
flags
&=
~
DISPATCH_JSCRIPT_INTERNAL_MASK
;
hres
=
jsdisp_call_value
(
jsdisp
,
jsthis
,
flags
,
argc
,
argv
,
r
);
hres
=
jsdisp_call_value
(
jsdisp
,
jsthis
,
flags
,
argc
,
argv
,
r
);
...
@@ -2170,7 +2170,7 @@ HRESULT disp_propput(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t val)
...
@@ -2170,7 +2170,7 @@ HRESULT disp_propput(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t val)
HRESULT
hres
;
HRESULT
hres
;
jsdisp
=
iface_to_jsdisp
(
disp
);
jsdisp
=
iface_to_jsdisp
(
disp
);
if
(
jsdisp
)
{
if
(
jsdisp
&&
jsdisp
->
ctx
==
ctx
)
{
dispex_prop_t
*
prop
;
dispex_prop_t
*
prop
;
prop
=
get_prop
(
jsdisp
,
id
);
prop
=
get_prop
(
jsdisp
,
id
);
...
@@ -2272,7 +2272,7 @@ HRESULT disp_propget(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t *val
...
@@ -2272,7 +2272,7 @@ HRESULT disp_propget(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t *val
HRESULT
hres
;
HRESULT
hres
;
jsdisp
=
iface_to_jsdisp
(
disp
);
jsdisp
=
iface_to_jsdisp
(
disp
);
if
(
jsdisp
)
{
if
(
jsdisp
&&
jsdisp
->
ctx
==
ctx
)
{
hres
=
jsdisp_propget
(
jsdisp
,
id
,
val
);
hres
=
jsdisp_propget
(
jsdisp
,
id
,
val
);
jsdisp_release
(
jsdisp
);
jsdisp_release
(
jsdisp
);
return
hres
;
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