schedsvc: Use current time as trigger begin time when necessary.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-06-27 15:00:29 +08:00 committed by Alexandre Julliard
parent 76be2b6768
commit 53266ac32d
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,9 @@ static BOOL trigger_get_next_runtime(const TASK_TRIGGER *trigger, const FILETIME
FileTimeToSystemTime(current_ft, &current_st);
get_begin_time(trigger, &begin_ft);
if (CompareFileTime(&begin_ft, current_ft) < 0)
begin_ft = *current_ft;
get_end_time(trigger, &end_ft);
switch (trigger->TriggerType)