Commit 6dbee463 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

taskschd: Implement IExecAction::put_WorkingDirectory.

parent 315be161
...@@ -1677,6 +1677,7 @@ typedef struct ...@@ -1677,6 +1677,7 @@ typedef struct
IExecAction IExecAction_iface; IExecAction IExecAction_iface;
LONG ref; LONG ref;
WCHAR *path; WCHAR *path;
WCHAR *directory;
} ExecAction; } ExecAction;
static inline ExecAction *impl_from_IExecAction(IExecAction *iface) static inline ExecAction *impl_from_IExecAction(IExecAction *iface)
...@@ -1699,6 +1700,7 @@ static ULONG WINAPI ExecAction_Release(IExecAction *iface) ...@@ -1699,6 +1700,7 @@ static ULONG WINAPI ExecAction_Release(IExecAction *iface)
{ {
TRACE("destroying %p\n", iface); TRACE("destroying %p\n", iface);
heap_free(action->path); heap_free(action->path);
heap_free(action->directory);
heap_free(action); heap_free(action);
} }
...@@ -1824,8 +1826,16 @@ static HRESULT WINAPI ExecAction_get_WorkingDirectory(IExecAction *iface, BSTR * ...@@ -1824,8 +1826,16 @@ static HRESULT WINAPI ExecAction_get_WorkingDirectory(IExecAction *iface, BSTR *
static HRESULT WINAPI ExecAction_put_WorkingDirectory(IExecAction *iface, BSTR directory) static HRESULT WINAPI ExecAction_put_WorkingDirectory(IExecAction *iface, BSTR directory)
{ {
FIXME("%p,%s: stub\n", iface, debugstr_w(directory)); ExecAction *action = impl_from_IExecAction(iface);
return E_NOTIMPL; WCHAR *str = NULL;
TRACE("%p,%s\n", iface, debugstr_w(directory));
if (directory && !(str = heap_strdupW((directory)))) return E_OUTOFMEMORY;
heap_free(action->directory);
action->directory = str;
return S_OK;
} }
static const IExecActionVtbl Action_vtbl = static const IExecActionVtbl Action_vtbl =
...@@ -1858,6 +1868,7 @@ static HRESULT ExecAction_create(IExecAction **obj) ...@@ -1858,6 +1868,7 @@ static HRESULT ExecAction_create(IExecAction **obj)
action->IExecAction_iface.lpVtbl = &Action_vtbl; action->IExecAction_iface.lpVtbl = &Action_vtbl;
action->ref = 1; action->ref = 1;
action->path = NULL; action->path = NULL;
action->directory = NULL;
*obj = &action->IExecAction_iface; *obj = &action->IExecAction_iface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment