mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 22:51:20 +00:00
comctl32/datetime: Simplify last digits calculation.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
092d76b911
commit
c78011999b
|
@ -472,10 +472,10 @@ DATETIME_ReturnTxt (const DATETIME_INFO *infoPtr, int count, LPWSTR result, int
|
|||
result[1] = 0;
|
||||
break;
|
||||
case ONEDIGITYEAR:
|
||||
wsprintfW (result, fmt_dW, date.wYear-10* (int) floor(date.wYear/10));
|
||||
wsprintfW (result, fmt_dW, date.wYear % 10);
|
||||
break;
|
||||
case TWODIGITYEAR:
|
||||
wsprintfW (result, fmt__2dW, date.wYear-100* (int) floor(date.wYear/100));
|
||||
wsprintfW (result, fmt__2dW, date.wYear % 100);
|
||||
break;
|
||||
case INVALIDFULLYEAR:
|
||||
case FULLYEAR:
|
||||
|
|
Loading…
Reference in a new issue