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
efc86ec1
Commit
efc86ec1
authored
May 17, 2017
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix parse error when converting non-ascii string to VT_DATE.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b45a0d4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
vartype.c
dlls/oleaut32/tests/vartype.c
+7
-0
vartype.c
dlls/oleaut32/vartype.c
+1
-1
No files found.
dlls/oleaut32/tests/vartype.c
View file @
efc86ec1
...
...
@@ -3410,6 +3410,8 @@ static void test_VarDateFromStr(void)
SYSTEMTIME
st
;
OLECHAR
buff
[
128
];
size_t
i
;
OLECHAR
with_ideographic_spaceW
[]
=
{
'6'
,
'/'
,
'3'
,
'0'
,
'/'
,
'2'
,
'0'
,
'1'
,
'1'
,
0x3000
,
'1'
,
':'
,
'2'
,
'0'
,
':'
,
'3'
,
'4'
,
0
};
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
...
...
@@ -3533,6 +3535,11 @@ static void test_VarDateFromStr(void)
DFS
(
"6/30/2011 01:20:34 PM"
);
EXPECT_DBL
(
40724
.
55594907407
);
/* Native fails "1999 January 3, 9AM". I consider that a bug in native */
/* test a data with ideographic space */
out
=
0
.
0
;
hres
=
pVarDateFromStr
(
with_ideographic_spaceW
,
lcid
,
LOCALE_NOUSEROVERRIDE
,
&
out
);
EXPECT_DBL
(
40724
.
055
94907407
);
/* test a non-english data string */
DFS
(
"02.01.1970"
);
EXPECT_MISMATCH
;
DFS
(
"02.01.1970 00:00:00"
);
EXPECT_MISMATCH
;
...
...
dlls/oleaut32/vartype.c
View file @
efc86ec1
...
...
@@ -7676,7 +7676,7 @@ HRESULT WINAPI VarDateFromStr(OLECHAR* strIn, LCID lcid, ULONG dwFlags, DATE* pd
dp
.
dwCount
++
;
strIn
--
;
}
else
if
(
isalpha
(
*
strIn
))
else
if
(
isalpha
W
(
*
strIn
))
{
BOOL
bFound
=
FALSE
;
...
...
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