Commit f8483297 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

taskschd: Implement ITaskSettings_put_DeleteExpiredTaskAfter.

parent 53e4c36e
...@@ -1196,8 +1196,16 @@ static HRESULT WINAPI TaskSettings_get_DeleteExpiredTaskAfter(ITaskSettings *ifa ...@@ -1196,8 +1196,16 @@ static HRESULT WINAPI TaskSettings_get_DeleteExpiredTaskAfter(ITaskSettings *ifa
static HRESULT WINAPI TaskSettings_put_DeleteExpiredTaskAfter(ITaskSettings *iface, BSTR delay) static HRESULT WINAPI TaskSettings_put_DeleteExpiredTaskAfter(ITaskSettings *iface, BSTR delay)
{ {
TaskSettings *taskset = impl_from_ITaskSettings(iface);
WCHAR *str = NULL;
TRACE("%p,%s\n", iface, debugstr_w(delay)); TRACE("%p,%s\n", iface, debugstr_w(delay));
return E_NOTIMPL;
if (delay && !(str = heap_strdupW(delay))) return E_OUTOFMEMORY;
heap_free(taskset->delete_expired_task_after);
taskset->delete_expired_task_after = str;
return S_OK;
} }
static HRESULT WINAPI TaskSettings_get_Priority(ITaskSettings *iface, INT *priority) static HRESULT WINAPI TaskSettings_get_Priority(ITaskSettings *iface, INT *priority)
......
...@@ -1138,6 +1138,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test) ...@@ -1138,6 +1138,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, NULL); hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, NULL);
else else
hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, test->delete_expired_task_after); hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, test->delete_expired_task_after);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_Priority(set, test->priority);
todo_wine todo_wine
ok(hr == S_OK, "expected S_OK, got %#x\n", hr); ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
/* FIXME: Remove once implemented */ /* FIXME: Remove once implemented */
...@@ -1147,9 +1150,6 @@ todo_wine ...@@ -1147,9 +1150,6 @@ todo_wine
return; return;
} }
hr = ITaskSettings_put_Priority(set, test->priority);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_Compatibility(set, test->compatibility); hr = ITaskSettings_put_Compatibility(set, test->compatibility);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr); ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
......
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