comctl32/datetime: Simplify last digits calculation.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Gabriel Ivăncescu 2020-01-17 14:45:34 +02:00 committed by Alexandre Julliard
parent 092d76b911
commit c78011999b
1 changed files with 2 additions and 2 deletions

View File

@ -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: