https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e45b15aca2496958658ae24a0d0c2e3b774aeb7b
commit e45b15aca2496958658ae24a0d0c2e3b774aeb7b Author: Serge Gautherie <[email protected]> AuthorDate: Fri Jan 24 04:41:00 2020 +0100 Commit: Giannis Adamopoulos <[email protected]> CommitDate: Sun Apr 26 21:41:39 2020 +0300 [EXPLORER] CTrayClockWnd::CalculateDueTime(): Fix uiDueTime value when showing seconds. --- base/shell/explorer/trayclock.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/base/shell/explorer/trayclock.cpp b/base/shell/explorer/trayclock.cpp index 3d66edcd28e..45a673693cc 100644 --- a/base/shell/explorer/trayclock.cpp +++ b/base/shell/explorer/trayclock.cpp @@ -424,12 +424,9 @@ UINT CTrayClockWnd::CalculateDueTime() { UINT uiDueTime; - /* Calculate the due time */ GetLocalTime(&LocalTime); uiDueTime = 1000 - (UINT) LocalTime.wMilliseconds; - if (g_TaskbarSettings.bShowSeconds) - uiDueTime += (UINT) LocalTime.wSecond * 100; - else + if (!g_TaskbarSettings.bShowSeconds) uiDueTime += (59 - (UINT) LocalTime.wSecond) * 1000; if (uiDueTime < USER_TIMER_MINIMUM || uiDueTime > USER_TIMER_MAXIMUM)
