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
8f7d1ed5
Commit
8f7d1ed5
authored
Feb 22, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fixed time outputing for dates before 1899 in VarBstrFromDate.
parent
b6a7cc91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
vartype.c
dlls/oleaut32/tests/vartype.c
+1
-0
vartype.c
dlls/oleaut32/vartype.c
+1
-1
No files found.
dlls/oleaut32/tests/vartype.c
View file @
8f7d1ed5
...
@@ -4951,6 +4951,7 @@ static void test_VarBstrFromDate(void)
...
@@ -4951,6 +4951,7 @@ static void test_VarBstrFromDate(void)
BSTR_DATE
(
365
.
25
,
"12/30/1900 6:00:00 AM"
);
BSTR_DATE
(
365
.
25
,
"12/30/1900 6:00:00 AM"
);
BSTR_DATE
(
1461
.
0
,
"12/31/1903"
);
BSTR_DATE
(
1461
.
0
,
"12/31/1903"
);
BSTR_DATE
(
1461
.
5
,
"12/31/1903 12:00:00 PM"
);
BSTR_DATE
(
1461
.
5
,
"12/31/1903 12:00:00 PM"
);
BSTR_DATE
(
-
49192
.
24
,
"4/24/1765 5:45:36 AM"
);
todo_wine
{
BSTR_DATE
(
-
657434
.
0
,
"1/1/100"
);
}
todo_wine
{
BSTR_DATE
(
-
657434
.
0
,
"1/1/100"
);
}
BSTR_DATE
(
2958465
.
0
,
"12/31/9999"
);
BSTR_DATE
(
2958465
.
0
,
"12/31/9999"
);
...
...
dlls/oleaut32/vartype.c
View file @
8f7d1ed5
...
@@ -6619,7 +6619,7 @@ HRESULT WINAPI VarBstrFromDate(DATE dateIn, LCID lcid, ULONG dwFlags, BSTR* pbst
...
@@ -6619,7 +6619,7 @@ HRESULT WINAPI VarBstrFromDate(DATE dateIn, LCID lcid, ULONG dwFlags, BSTR* pbst
if
(
whole
==
0
.
0
)
if
(
whole
==
0
.
0
)
dwFlags
|=
VAR_TIMEVALUEONLY
;
dwFlags
|=
VAR_TIMEVALUEONLY
;
else
if
(
partial
<
1e-12
)
else
if
(
partial
>
-
1e-12
&&
partial
<
1e-12
)
dwFlags
|=
VAR_DATEVALUEONLY
;
dwFlags
|=
VAR_DATEVALUEONLY
;
}
}
...
...
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