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
96ace8cb
Commit
96ace8cb
authored
Mar 26, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use jsstr_flatten to access string buffer in jsutils.c.
parent
b11d47fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
jsutils.c
dlls/jscript/jsutils.c
+4
-5
No files found.
dlls/jscript/jsutils.c
View file @
96ace8cb
...
...
@@ -502,16 +502,15 @@ static int hex_to_int(WCHAR c)
/* ECMA-262 3rd Edition 9.3.1 */
static
HRESULT
str_to_number
(
jsstr_t
*
str
,
double
*
ret
)
{
const
WCHAR
*
ptr
=
str
->
str
;
const
WCHAR
*
ptr
;
BOOL
neg
=
FALSE
;
DOUBLE
d
=
0
.
0
;
static
const
WCHAR
infinityW
[]
=
{
'I'
,
'n'
,
'f'
,
'i'
,
'n'
,
'i'
,
't'
,
'y'
};
if
(
!
ptr
)
{
*
ret
=
0
;
return
S_OK
;
}
ptr
=
jsstr_flatten
(
str
);
if
(
!
ptr
)
return
E_OUTOFMEMORY
;
while
(
isspaceW
(
*
ptr
))
ptr
++
;
...
...
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