Dmitry Timoshkov : taskschd: Implement IExecAction::put_Arguments.

Alexandre Julliard julliard at winehq.org
Tue Mar 6 16:48:50 CST 2018


Module: wine
Branch: master
Commit: daf2d98e683a9fd2bd0410b4a0c57c5d196e2862
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=daf2d98e683a9fd2bd0410b4a0c57c5d196e2862

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Mar  6 11:33:00 2018 +0800

taskschd: Implement IExecAction::put_Arguments.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/taskschd/task.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/dlls/taskschd/task.c b/dlls/taskschd/task.c
index 2b0283e..a4cc3be 100644
--- a/dlls/taskschd/task.c
+++ b/dlls/taskschd/task.c
@@ -1678,6 +1678,7 @@ typedef struct
     LONG ref;
     WCHAR *path;
     WCHAR *directory;
+    WCHAR *args;
 } ExecAction;
 
 static inline ExecAction *impl_from_IExecAction(IExecAction *iface)
@@ -1701,6 +1702,7 @@ static ULONG WINAPI ExecAction_Release(IExecAction *iface)
         TRACE("destroying %p\n", iface);
         heap_free(action->path);
         heap_free(action->directory);
+        heap_free(action->args);
         heap_free(action);
     }
 
@@ -1814,7 +1816,15 @@ static HRESULT WINAPI ExecAction_get_Arguments(IExecAction *iface, BSTR *argumen
 
 static HRESULT WINAPI ExecAction_put_Arguments(IExecAction *iface, BSTR arguments)
 {
-    FIXME("%p,%s: stub\n", iface, debugstr_w(arguments));
+    ExecAction *action = impl_from_IExecAction(iface);
+    WCHAR *str = NULL;
+
+    TRACE("%p,%s\n", iface, debugstr_w(arguments));
+
+    if (arguments && !(str = heap_strdupW((arguments)))) return E_OUTOFMEMORY;
+    heap_free(action->args);
+    action->args = str;
+
     return S_OK;
 }
 
@@ -1877,6 +1887,7 @@ static HRESULT ExecAction_create(IExecAction **obj)
     action->ref = 1;
     action->path = NULL;
     action->directory = NULL;
+    action->args = NULL;
 
     *obj = &action->IExecAction_iface;
 




More information about the wine-cvs mailing list