Module: wine Branch: master Commit: 1884714569b0121bb8c7eda928211ca9d4123923 URL: https://source.winehq.org/git/wine.git/?a=commit;h=1884714569b0121bb8c7eda92...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Tue Mar 6 11:33:02 2018 +0800
taskschd: Implement IExecAction::get_Arguments.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/taskschd/task.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/taskschd/task.c b/dlls/taskschd/task.c index a4cc3be..1b6a701 100644 --- a/dlls/taskschd/task.c +++ b/dlls/taskschd/task.c @@ -1810,8 +1810,16 @@ static HRESULT WINAPI ExecAction_put_Path(IExecAction *iface, BSTR path)
static HRESULT WINAPI ExecAction_get_Arguments(IExecAction *iface, BSTR *arguments) { - FIXME("%p,%p: stub\n", iface, arguments); - return E_NOTIMPL; + ExecAction *action = impl_from_IExecAction(iface); + + TRACE("%p,%p\n", iface, arguments); + + if (!arguments) return E_POINTER; + + if (!action->args) *arguments = NULL; + else if (!(*arguments = SysAllocString(action->args))) return E_OUTOFMEMORY; + + return S_OK; }
static HRESULT WINAPI ExecAction_put_Arguments(IExecAction *iface, BSTR arguments)