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
12760a0c
Commit
12760a0c
authored
Jul 07, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fix DateConstr_parse implementation.
parent
97db9029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
date.c
dlls/jscript/date.c
+6
-8
No files found.
dlls/jscript/date.c
View file @
12760a0c
...
...
@@ -2492,7 +2492,7 @@ static inline HRESULT date_parse(BSTR input, VARIANT *retv) {
static
HRESULT
DateConstr_parse
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
VARIANT
prim
;
BSTR
parse_str
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
...
...
@@ -2503,16 +2503,14 @@ static HRESULT DateConstr_parse(DispatchEx *dispex, LCID lcid, WORD flags, DISPP
return
S_OK
;
}
hres
=
to_
primitive
(
dispex
->
ctx
,
get_arg
(
dp
,
0
),
ei
,
&
prim
);
hres
=
to_
string
(
dispex
->
ctx
,
get_arg
(
dp
,
0
),
ei
,
&
parse_str
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
V_VT
(
&
prim
)
!=
VT_BSTR
)
{
if
(
retv
)
num_set_nan
(
retv
);
return
S_OK
;
}
return
date_parse
(
V_BSTR
(
&
prim
),
retv
);
hres
=
date_parse
(
parse_str
,
retv
);
SysFreeString
(
parse_str
);
return
hres
;
}
static
HRESULT
DateConstr_UTC
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
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