mstask: Implement ITask::GetTrigger().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0049deca7a
commit
0ad429aff6
|
@ -198,13 +198,24 @@ static HRESULT WINAPI MSTASK_ITask_GetTriggerCount(ITask *iface, WORD *count)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI MSTASK_ITask_GetTrigger(
|
static HRESULT WINAPI MSTASK_ITask_GetTrigger(ITask *iface, WORD idx, ITaskTrigger **trigger)
|
||||||
ITask* iface,
|
|
||||||
WORD iTrigger,
|
|
||||||
ITaskTrigger **ppTrigger)
|
|
||||||
{
|
{
|
||||||
FIXME("(%p, %d, %p): stub\n", iface, iTrigger, ppTrigger);
|
TaskImpl *This = impl_from_ITask(iface);
|
||||||
return E_NOTIMPL;
|
HRESULT hr;
|
||||||
|
|
||||||
|
TRACE("(%p, %u, %p)\n", iface, idx, trigger);
|
||||||
|
|
||||||
|
if (idx >= This->trigger_count)
|
||||||
|
return SCHED_E_TRIGGER_NOT_FOUND;
|
||||||
|
|
||||||
|
hr = TaskTriggerConstructor((void **)trigger);
|
||||||
|
if (hr != S_OK) return hr;
|
||||||
|
|
||||||
|
hr = ITaskTrigger_SetTrigger(*trigger, &This->trigger[idx]);
|
||||||
|
if (hr != S_OK)
|
||||||
|
ITaskTrigger_Release(*trigger);
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI MSTASK_ITask_GetTriggerString(
|
static HRESULT WINAPI MSTASK_ITask_GetTriggerString(
|
||||||
|
|
Loading…
Reference in New Issue