Skip to content
Snippets Groups Projects
Commit f1ca1180 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard
Browse files

mstask: Avoid an infinite loop.

parent 26975bfb
Branches
Tags
No related merge requests found
......@@ -532,6 +532,9 @@ static HRESULT WINAPI MSTASK_ITask_GetNextRunTime(ITask *iface, SYSTEMTIME *rt)
break;
case TASK_TIME_TRIGGER_DAILY:
if (!This->trigger[i].Type.Daily.DaysInterval)
break; /* avoid infinite loop */
st = current_st;
st.wHour = This->trigger[i].wStartHour;
st.wMinute = This->trigger[i].wStartMinute;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment