Commit 76be2b67 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

schedsvc: Avoid an infinite loop.

parent f7a320e2
......@@ -194,6 +194,9 @@ static BOOL trigger_get_next_runtime(const TASK_TRIGGER *trigger, const FILETIME
break;
case TASK_TIME_TRIGGER_DAILY:
if (!trigger->Type.Daily.DaysInterval)
break; /* avoid infinite loop */
st = current_st;
st.wHour = trigger->wStartHour;
st.wMinute = trigger->wStartMinute;
......
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