28 May
2025
28 May
'25
4:14 p.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8166#note_104827