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
1dc896eb
Commit
1dc896eb
authored
Feb 07, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Feb 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix formula.
parent
b609e252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
variant.c
dlls/oleaut32/variant.c
+8
-8
No files found.
dlls/oleaut32/variant.c
View file @
1dc896eb
...
...
@@ -1148,13 +1148,13 @@ static HRESULT VARIANT_RollUdate(UDATE *lpUd)
if
(
iYear
>
0
&&
iYear
<
100
)
iYear
+=
1900
;
iMinute
+=
(
iSecond
-
(
iSecond
%
60
))
/
60
;
iSecond
=
iSecond
%
60
;
iHour
+=
(
iMinute
-
(
iMinute
%
60
))
/
60
;
iMinute
=
iMinute
%
60
;
iDay
+=
(
iHour
-
(
iHour
%
24
))
/
24
;
iHour
=
iHour
%
24
;
iYear
+=
(
iMonth
-
(
iMonth
%
12
))
/
12
;
iMinute
+=
iSecond
/
60
;
iSecond
=
iSecond
%
60
;
iHour
+=
iMinute
/
60
;
iMinute
=
iMinute
%
60
;
iDay
+=
iHour
/
24
;
iHour
=
iHour
%
24
;
iYear
+=
iMonth
/
12
;
iMonth
=
iMonth
%
12
;
if
(
iMonth
<=
0
)
{
iMonth
+=
12
;
iYear
--
;}
while
(
iDay
>
days
[
iMonth
])
...
...
@@ -1164,7 +1164,7 @@ static HRESULT VARIANT_RollUdate(UDATE *lpUd)
else
iDay
-=
days
[
iMonth
];
iMonth
++
;
iYear
+=
(
iMonth
-
(
iMonth
%
12
))
/
12
;
iYear
+=
iMonth
/
12
;
iMonth
=
iMonth
%
12
;
}
while
(
iDay
<=
0
)
...
...
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