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
5f9f9a45
Commit
5f9f9a45
authored
Mar 01, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Properly support missing array elements in stringify_array.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
25cf6b7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
json.c
dlls/jscript/json.c
+7
-4
No files found.
dlls/jscript/json.c
View file @
5f9f9a45
...
...
@@ -545,15 +545,18 @@ static HRESULT stringify_array(stringify_ctx_t *ctx, jsdisp_t *obj)
}
hres
=
jsdisp_get_idx
(
obj
,
i
,
&
val
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
SUCCEEDED
(
hres
))
{
hres
=
stringify
(
ctx
,
val
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
hres
==
S_FALSE
&&
!
append_string
(
ctx
,
nullW
))
return
E_OUTOFMEMORY
;
}
else
if
(
hres
==
DISP_E_UNKNOWNNAME
)
{
if
(
!
append_string
(
ctx
,
nullW
))
return
E_OUTOFMEMORY
;
}
else
{
return
hres
;
}
}
if
((
length
&&
*
ctx
->
gap
&&
!
append_char
(
ctx
,
'\n'
))
||
!
append_char
(
ctx
,
']'
))
...
...
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