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:
parent
76be2b6768
commit
53266ac32d
|
@ -170,6 +170,9 @@ static BOOL trigger_get_next_runtime(const TASK_TRIGGER *trigger, const FILETIME
|
|||
FileTimeToSystemTime(current_ft, ¤t_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)
|
||||
|
|
Loading…
Reference in New Issue