André Hentschel : oleaut32: Fix formula.
Alexandre Julliard
julliard at winehq.org
Mon Feb 8 11:06:06 CST 2010
Module: wine
Branch: master
Commit: 1dc896eb52e17130673262524f00ef8e79b2fee7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1dc896eb52e17130673262524f00ef8e79b2fee7
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Feb 7 18:59:15 2010 +0100
oleaut32: Fix formula.
---
dlls/oleaut32/variant.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c
index 55d0935..450856f 100644
--- a/dlls/oleaut32/variant.c
+++ b/dlls/oleaut32/variant.c
@@ -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)
More information about the wine-cvs
mailing list