taskschd: Implement IRegisteredTask::get_Definition.

This commit is contained in:
Dmitry Timoshkov 2014-02-19 12:13:07 +09:00 committed by Alexandre Julliard
parent 734417a481
commit d99d3014f5
1 changed files with 10 additions and 2 deletions

View File

@ -189,8 +189,16 @@ static HRESULT WINAPI regtask_get_NextRunTime(IRegisteredTask *iface, DATE *date
static HRESULT WINAPI regtask_get_Definition(IRegisteredTask *iface, ITaskDefinition **task) static HRESULT WINAPI regtask_get_Definition(IRegisteredTask *iface, ITaskDefinition **task)
{ {
FIXME("%p,%p: stub\n", iface, task); RegisteredTask *regtask = impl_from_IRegisteredTask(iface);
return E_NOTIMPL;
TRACE("%p,%p\n", iface, task);
if (!task) return E_POINTER;
ITaskDefinition_AddRef(regtask->taskdef);
*task = regtask->taskdef;
return S_OK;
} }
static HRESULT WINAPI regtask_get_Xml(IRegisteredTask *iface, BSTR *xml) static HRESULT WINAPI regtask_get_Xml(IRegisteredTask *iface, BSTR *xml)