Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
13164037
Commit
13164037
authored
Feb 06, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Pass 'this' as jsdisp_t to setters.
parent
d541b525
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
20 deletions
+15
-20
array.c
dlls/jscript/array.c
+2
-2
dispex.c
dlls/jscript/dispex.c
+3
-8
function.c
dlls/jscript/function.c
+1
-1
jscript.h
dlls/jscript/jscript.h
+2
-2
jsregexp.c
dlls/jscript/jsregexp.c
+6
-6
string.c
dlls/jscript/string.c
+1
-1
No files found.
dlls/jscript/array.c
View file @
13164037
...
...
@@ -126,9 +126,9 @@ static HRESULT Array_get_length(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t *r)
return
S_OK
;
}
static
HRESULT
Array_set_length
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
Array_set_length
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
ArrayInstance
*
This
=
array_from_
v
disp
(
jsthis
);
ArrayInstance
*
This
=
array_from_
js
disp
(
jsthis
);
DOUBLE
len
=
-
1
;
DWORD
i
;
HRESULT
hres
;
...
...
dlls/jscript/dispex.c
View file @
13164037
...
...
@@ -470,14 +470,9 @@ static HRESULT prop_put(jsdisp_t *This, dispex_prop_t *prop, jsval_t val, IServi
switch
(
prop
->
type
)
{
case
PROP_BUILTIN
:
if
(
prop
->
u
.
p
->
setter
)
{
vdisp_t
vthis
;
if
(
prop
->
u
.
p
->
setter
)
return
prop
->
u
.
p
->
setter
(
This
->
ctx
,
This
,
val
)
;
set_jsdisp
(
&
vthis
,
This
);
hres
=
prop
->
u
.
p
->
setter
(
This
->
ctx
,
&
vthis
,
val
);
vdisp_release
(
&
vthis
);
return
hres
;
}
if
(
prop
->
u
.
p
->
setter
)
{
FIXME
(
"getter with no setter
\n
"
);
return
E_FAIL
;
...
...
@@ -512,7 +507,7 @@ static HRESULT prop_put(jsdisp_t *This, dispex_prop_t *prop, jsval_t val, IServi
return
S_OK
;
}
HRESULT
builtin_set_const
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
HRESULT
builtin_set_const
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
TRACE
(
"%p %s
\n
"
,
jsthis
,
debugstr_jsval
(
value
));
return
S_OK
;
...
...
dlls/jscript/function.c
View file @
13164037
...
...
@@ -375,7 +375,7 @@ static HRESULT Function_get_length(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t
return
S_OK
;
}
static
HRESULT
Function_set_length
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
Function_set_length
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
...
...
dlls/jscript/jscript.h
View file @
13164037
...
...
@@ -188,9 +188,9 @@ static inline jsdisp_t *get_jsdisp(vdisp_t *vdisp)
typedef
HRESULT
(
*
builtin_invoke_t
)(
script_ctx_t
*
,
vdisp_t
*
,
WORD
,
unsigned
,
jsval_t
*
,
jsval_t
*
);
typedef
HRESULT
(
*
builtin_getter_t
)(
script_ctx_t
*
,
jsdisp_t
*
,
jsval_t
*
);
typedef
HRESULT
(
*
builtin_setter_t
)(
script_ctx_t
*
,
v
disp_t
*
,
jsval_t
);
typedef
HRESULT
(
*
builtin_setter_t
)(
script_ctx_t
*
,
js
disp_t
*
,
jsval_t
);
HRESULT
builtin_set_const
(
script_ctx_t
*
,
v
disp_t
*
,
jsval_t
)
DECLSPEC_HIDDEN
;
HRESULT
builtin_set_const
(
script_ctx_t
*
,
js
disp_t
*
,
jsval_t
)
DECLSPEC_HIDDEN
;
typedef
struct
{
const
WCHAR
*
name
;
...
...
dlls/jscript/jsregexp.c
View file @
13164037
...
...
@@ -256,7 +256,7 @@ static HRESULT RegExp_get_source(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t *r
return
S_OK
;
}
static
HRESULT
RegExp_set_source
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
RegExp_set_source
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -268,7 +268,7 @@ static HRESULT RegExp_get_global(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t *r
return
E_NOTIMPL
;
}
static
HRESULT
RegExp_set_global
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
RegExp_set_global
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -280,7 +280,7 @@ static HRESULT RegExp_get_ignoreCase(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_
return
E_NOTIMPL
;
}
static
HRESULT
RegExp_set_ignoreCase
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
RegExp_set_ignoreCase
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -292,7 +292,7 @@ static HRESULT RegExp_get_multiline(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t
return
E_NOTIMPL
;
}
static
HRESULT
RegExp_set_multiline
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
RegExp_set_multiline
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -322,9 +322,9 @@ static HRESULT RegExp_get_lastIndex(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t
return
jsval_copy
(
regexp
->
last_index_val
,
r
);
}
static
HRESULT
RegExp_set_lastIndex
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
RegExp_set_lastIndex
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
RegExpInstance
*
regexp
=
regexp_from_
v
disp
(
jsthis
);
RegExpInstance
*
regexp
=
regexp_from_
js
disp
(
jsthis
);
HRESULT
hres
;
TRACE
(
"
\n
"
);
...
...
dlls/jscript/string.c
View file @
13164037
...
...
@@ -121,7 +121,7 @@ static HRESULT String_get_length(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t *r
return
S_OK
;
}
static
HRESULT
String_set_length
(
script_ctx_t
*
ctx
,
v
disp_t
*
jsthis
,
jsval_t
value
)
static
HRESULT
String_set_length
(
script_ctx_t
*
ctx
,
js
disp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"%p
\n
"
,
jsthis
);
return
E_NOTIMPL
;
...
...
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