Commit 53266ac3 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

parent 76be2b67
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment