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
b7ffca59
Commit
b7ffca59
authored
Mar 27, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use helpers to access string buffer in object.c.
parent
e67169c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
object.c
dlls/jscript/object.c
+11
-5
No files found.
dlls/jscript/object.c
View file @
b7ffca59
...
@@ -130,9 +130,14 @@ static HRESULT Object_hasOwnProperty(script_ctx_t *ctx, vdisp_t *jsthis, WORD fl
...
@@ -130,9 +130,14 @@ static HRESULT Object_hasOwnProperty(script_ctx_t *ctx, vdisp_t *jsthis, WORD fl
return
hres
;
return
hres
;
if
(
is_jsdisp
(
jsthis
))
{
if
(
is_jsdisp
(
jsthis
))
{
const
WCHAR
*
name_str
;
BOOL
result
;
BOOL
result
;
hres
=
jsdisp_is_own_prop
(
jsthis
->
u
.
jsdisp
,
name
->
str
,
&
result
);
name_str
=
jsstr_flatten
(
name
);
if
(
name_str
)
hres
=
jsdisp_is_own_prop
(
jsthis
->
u
.
jsdisp
,
name_str
,
&
result
);
else
hres
=
E_OUTOFMEMORY
;
jsstr_release
(
name
);
jsstr_release
(
name
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
...
@@ -164,7 +169,8 @@ static HRESULT Object_hasOwnProperty(script_ctx_t *ctx, vdisp_t *jsthis, WORD fl
...
@@ -164,7 +169,8 @@ static HRESULT Object_hasOwnProperty(script_ctx_t *ctx, vdisp_t *jsthis, WORD fl
static
HRESULT
Object_propertyIsEnumerable
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
static
HRESULT
Object_propertyIsEnumerable
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
jsval_t
*
r
)
jsval_t
*
r
)
{
{
jsstr_t
*
name
;
const
WCHAR
*
name
;
jsstr_t
*
name_str
;
BOOL
ret
;
BOOL
ret
;
HRESULT
hres
;
HRESULT
hres
;
...
@@ -180,12 +186,12 @@ static HRESULT Object_propertyIsEnumerable(script_ctx_t *ctx, vdisp_t *jsthis, W
...
@@ -180,12 +186,12 @@ static HRESULT Object_propertyIsEnumerable(script_ctx_t *ctx, vdisp_t *jsthis, W
return
E_FAIL
;
return
E_FAIL
;
}
}
hres
=
to_
string
(
ctx
,
argv
[
0
]
,
&
name
);
hres
=
to_
flat_string
(
ctx
,
argv
[
0
],
&
name_str
,
&
name
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
hres
=
jsdisp_is_enumerable
(
jsthis
->
u
.
jsdisp
,
name
->
str
,
&
ret
);
hres
=
jsdisp_is_enumerable
(
jsthis
->
u
.
jsdisp
,
name
,
&
ret
);
jsstr_release
(
name
);
jsstr_release
(
name
_str
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
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