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
66c42df0
Commit
66c42df0
authored
Apr 25, 2011
by
John Fremlin
Committed by
Alexandre Julliard
Apr 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleau32: Stop incorrectly parsing dates in bogus YDM order in European locales.
parent
a5fbbbe4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
vartype.c
dlls/oleaut32/tests/vartype.c
+3
-0
vartype.c
dlls/oleaut32/vartype.c
+1
-1
No files found.
dlls/oleaut32/tests/vartype.c
View file @
66c42df0
...
...
@@ -3458,6 +3458,9 @@ static void test_VarDateFromStr(void)
DFS
(
"02.01.1970"
);
EXPECT_DBL
(
25570
.
0
);
DFS
(
"02.13.1970"
);
EXPECT_DBL
(
25612
.
0
);
DFS
(
"02-13-1970"
);
EXPECT_DBL
(
25612
.
0
);
DFS
(
"2020-01-11"
);
EXPECT_DBL
(
43841
.
0
);
DFS
(
"2173-10-14"
);
EXPECT_DBL
(
100000
.
0
);
DFS
(
"02.01.1970 00:00:00"
);
EXPECT_DBL
(
25570
.
0
);
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_SPANISH
,
SUBLANG_SPANISH
),
SORT_DEFAULT
);
DFS
(
"02.01.1970"
);
EXPECT_MISMATCH
;
...
...
dlls/oleaut32/vartype.c
View file @
66c42df0
...
...
@@ -7282,7 +7282,7 @@ VARIANT_MakeDate_Start:
switch
(
iDate
)
{
case
0
:
dwTry
=
dwAllOrders
&
~
(
ORDER_DMY
|
ORDER_YDM
);
break
;
case
1
:
dwTry
=
dwAllOrders
&
~
(
ORDER_MDY
|
ORDER_Y
MD
|
ORDER_MYD
);
break
;
case
1
:
dwTry
=
dwAllOrders
&
~
(
ORDER_MDY
|
ORDER_Y
DM
|
ORDER_MYD
);
break
;
default:
dwTry
=
dwAllOrders
&
~
(
ORDER_DMY
|
ORDER_YDM
);
break
;
}
}
...
...
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