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
e3d94033
Commit
e3d94033
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: Added jsstr_flatten helper and use it to access string buffer in date.c.
parent
16668e82
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
date.c
dlls/jscript/date.c
+3
-1
jsstr.h
dlls/jscript/jsstr.h
+6
-0
No files found.
dlls/jscript/date.c
View file @
e3d94033
...
@@ -2054,7 +2054,9 @@ static inline HRESULT date_parse(jsstr_t *input_str, double *ret) {
...
@@ -2054,7 +2054,9 @@ static inline HRESULT date_parse(jsstr_t *input_str, double *ret) {
DWORD
lcid_en
;
DWORD
lcid_en
;
input_len
=
jsstr_length
(
input_str
);
input_len
=
jsstr_length
(
input_str
);
input
=
input_str
->
str
;
input
=
jsstr_flatten
(
input_str
);
if
(
!
input
)
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
input_len
;
i
++
)
{
for
(
i
=
0
;
i
<
input_len
;
i
++
)
{
if
(
input
[
i
]
==
'('
)
nest_level
++
;
if
(
input
[
i
]
==
'('
)
nest_level
++
;
...
...
dlls/jscript/jsstr.h
View file @
e3d94033
...
@@ -53,6 +53,12 @@ static inline jsstr_t *jsstr_addref(jsstr_t *str)
...
@@ -53,6 +53,12 @@ static inline jsstr_t *jsstr_addref(jsstr_t *str)
return
str
;
return
str
;
}
}
/* This will be failable in the future. */
static
inline
const
WCHAR
*
jsstr_flatten
(
jsstr_t
*
str
)
{
return
str
->
str
;
}
static
inline
BOOL
jsstr_eq
(
jsstr_t
*
str1
,
jsstr_t
*
str2
)
static
inline
BOOL
jsstr_eq
(
jsstr_t
*
str1
,
jsstr_t
*
str2
)
{
{
unsigned
len
=
jsstr_length
(
str1
);
unsigned
len
=
jsstr_length
(
str1
);
...
...
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