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
887840a8
Commit
887840a8
authored
May 15, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Move handling PROPF_WRITABLE to property type specific code.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd91fe52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
dispex.c
dlls/jscript/dispex.c
+15
-9
No files found.
dlls/jscript/dispex.c
View file @
887840a8
...
...
@@ -495,28 +495,34 @@ static HRESULT prop_put(jsdisp_t *This, dispex_prop_t *prop, jsval_t val)
{
HRESULT
hres
;
if
(
!
(
prop
->
flags
&
PROPF_WRITABLE
)
&&
prop
->
type
!=
PROP_PROTREF
)
return
S_OK
;
switch
(
prop
->
type
)
{
case
PROP_BUILTIN
:
if
(
prop
->
u
.
p
->
setter
)
return
prop
->
u
.
p
->
setter
(
This
->
ctx
,
This
,
val
);
if
(
prop
->
u
.
p
->
setter
)
{
FIXME
(
"getter with no setter
\n
"
);
return
E_FAIL
;
if
(
!
prop
->
u
.
p
->
setter
)
{
TRACE
(
"getter with no setter
\n
"
);
return
S_OK
;
}
/* fall through */
return
prop
->
u
.
p
->
setter
(
This
->
ctx
,
This
,
val
);
case
PROP_PROTREF
:
case
PROP_DELETED
:
prop
->
type
=
PROP_JSVAL
;
prop
->
flags
=
PROPF_ENUMERABLE
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
;
prop
->
u
.
val
=
jsval_undefined
();
break
;
case
PROP_JSVAL
:
if
(
!
(
prop
->
flags
&
PROPF_WRITABLE
))
return
S_OK
;
jsval_release
(
prop
->
u
.
val
);
break
;
case
PROP_ACCESSOR
:
FIXME
(
"not supported for accessor properties
\n
"
);
return
E_NOTIMPL
;
case
PROP_IDX
:
if
(
!
This
->
builtin_info
->
idx_put
)
{
TRACE
(
"no put_idx
\n
"
);
return
S_OK
;
}
return
This
->
builtin_info
->
idx_put
(
This
,
prop
->
u
.
idx
,
val
);
default:
ERR
(
"type %d
\n
"
,
prop
->
type
);
...
...
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