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
71f24431
Commit
71f24431
authored
Mar 03, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Mar 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix localized date parsing.
parent
9079109a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
vartype.c
dlls/oleaut32/tests/vartype.c
+2
-2
vartype.c
dlls/oleaut32/vartype.c
+8
-0
No files found.
dlls/oleaut32/tests/vartype.c
View file @
71f24431
...
@@ -3435,10 +3435,10 @@ static void test_VarDateFromStr(void)
...
@@ -3435,10 +3435,10 @@ static void test_VarDateFromStr(void)
DFS
(
"1-2-1970"
);
EXPECT_DBL
(
25570
.
0
);
DFS
(
"1-2-1970"
);
EXPECT_DBL
(
25570
.
0
);
/* Native fails "1999 January 3, 9AM". I consider that a bug in native */
/* Native fails "1999 January 3, 9AM". I consider that a bug in native */
/* test a non
e
english data string */
/* test a non
-
english data string */
DFS
(
"02.01.1970 00:00:00"
);
EXPECT_MISMATCH
;
DFS
(
"02.01.1970 00:00:00"
);
EXPECT_MISMATCH
;
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_GERMAN
,
SUBLANG_GERMAN
),
SORT_DEFAULT
);
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_GERMAN
,
SUBLANG_GERMAN
),
SORT_DEFAULT
);
DFS
(
"02.01.1970"
);
todo_wine
EXPECT_DBL
(
25570
.
0
);
DFS
(
"02.01.1970"
);
EXPECT_DBL
(
25570
.
0
);
DFS
(
"02.01.1970 00:00:00"
);
todo_wine
EXPECT_DBL
(
25570
.
0
);
DFS
(
"02.01.1970 00:00:00"
);
todo_wine
EXPECT_DBL
(
25570
.
0
);
}
}
...
...
dlls/oleaut32/vartype.c
View file @
71f24431
...
@@ -7607,6 +7607,14 @@ HRESULT WINAPI VarDateFromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, DATE* pd
...
@@ -7607,6 +7607,14 @@ HRESULT WINAPI VarDateFromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, DATE* pd
break
;
break
;
case
0x3
:
/* TTT TTTDD TTTDDD */
case
0x3
:
/* TTT TTTDD TTTDDD */
if
(
iDate
&&
dp
.
dwCount
==
3
)
{
/* DDD */
if
((
dp
.
dwFlags
[
0
]
&
(
DP_AM
|
DP_PM
))
||
(
dp
.
dwFlags
[
1
]
&
(
DP_AM
|
DP_PM
))
||
(
dp
.
dwFlags
[
2
]
&
(
DP_AM
|
DP_PM
)))
hRet
=
DISP_E_TYPEMISMATCH
;
break
;
}
if
(
dp
.
dwCount
>
4
&&
if
(
dp
.
dwCount
>
4
&&
((
dp
.
dwFlags
[
3
]
&
(
DP_AM
|
DP_PM
))
||
(
dp
.
dwFlags
[
4
]
&
(
DP_AM
|
DP_PM
))
||
((
dp
.
dwFlags
[
3
]
&
(
DP_AM
|
DP_PM
))
||
(
dp
.
dwFlags
[
4
]
&
(
DP_AM
|
DP_PM
))
||
(
dp
.
dwFlags
[
5
]
&
(
DP_AM
|
DP_PM
))))
(
dp
.
dwFlags
[
5
]
&
(
DP_AM
|
DP_PM
))))
...
...
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