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
81715d00
Commit
81715d00
authored
Jan 20, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Add error handling to Array.reverse.
parent
8644a083
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
array.c
dlls/jscript/array.c
+22
-4
No files found.
dlls/jscript/array.c
View file @
81715d00
...
...
@@ -473,17 +473,35 @@ static HRESULT Array_reverse(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISP
l
=
length
-
k
-
1
;
hres1
=
jsdisp_propget_idx
(
jsthis
,
k
,
&
v1
,
ei
,
sp
);
if
(
FAILED
(
hres1
))
return
hres1
;
hres2
=
jsdisp_propget_idx
(
jsthis
,
l
,
&
v2
,
ei
,
sp
);
if
(
FAILED
(
hres2
))
{
VariantClear
(
&
v1
);
return
hres2
;
}
if
(
hres1
==
DISP_E_UNKNOWNNAME
)
jsdisp_delete_idx
(
jsthis
,
l
);
hres1
=
jsdisp_delete_idx
(
jsthis
,
l
);
else
jsdisp_propput_idx
(
jsthis
,
l
,
&
v1
,
ei
,
sp
);
hres1
=
jsdisp_propput_idx
(
jsthis
,
l
,
&
v1
,
ei
,
sp
);
if
(
FAILED
(
hres1
))
{
VariantClear
(
&
v1
);
VariantClear
(
&
v2
);
return
hres1
;
}
if
(
hres2
==
DISP_E_UNKNOWNNAME
)
jsdisp_delete_idx
(
jsthis
,
k
);
hres2
=
jsdisp_delete_idx
(
jsthis
,
k
);
else
jsdisp_propput_idx
(
jsthis
,
k
,
&
v2
,
ei
,
sp
);
hres2
=
jsdisp_propput_idx
(
jsthis
,
k
,
&
v2
,
ei
,
sp
);
if
(
FAILED
(
hres2
))
{
VariantClear
(
&
v2
);
return
hres2
;
}
}
if
(
retv
)
{
...
...
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