Dmitry Timoshkov (@dmitry) commented about dlls/taskschd/regtask.c:
static HRESULT WINAPI regtasks_get_Count(IRegisteredTaskCollection *iface, LONG *count) {
- FIXME("%p,%p: stub\n", iface, count);
- if (count) *count = 0;
- return E_NOTIMPL;
- HRESULT hr;
- RegisteredTaskCollection *reg_tasks = NULL;
- TASK_NAMES task_names = NULL;
- DWORD start_index = 0, num_tasks = 0, i = 0;
There's no need to initialize 'num_tsaks', and 'i' should be initialized in the 'for' statement instead.