taskschd: Implement ITaskSettings_put_ExecutionTimeLimit.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ee12d7c917
commit
64c08e68c0
|
@ -1138,8 +1138,16 @@ static HRESULT WINAPI TaskSettings_get_ExecutionTimeLimit(ITaskSettings *iface,
|
|||
|
||||
static HRESULT WINAPI TaskSettings_put_ExecutionTimeLimit(ITaskSettings *iface, BSTR limit)
|
||||
{
|
||||
TaskSettings *taskset = impl_from_ITaskSettings(iface);
|
||||
WCHAR *str = NULL;
|
||||
|
||||
TRACE("%p,%s\n", iface, debugstr_w(limit));
|
||||
return E_NOTIMPL;
|
||||
|
||||
if (limit && !(str = heap_strdupW(limit))) return E_OUTOFMEMORY;
|
||||
heap_free(taskset->execution_time_limit);
|
||||
taskset->execution_time_limit = str;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI TaskSettings_get_Enabled(ITaskSettings *iface, VARIANT_BOOL *enabled)
|
||||
|
|
|
@ -1129,6 +1129,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
|
|||
hr = ITaskSettings_put_ExecutionTimeLimit(set, NULL);
|
||||
else
|
||||
hr = ITaskSettings_put_ExecutionTimeLimit(set, test->execution_time_limit);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
hr = ITaskSettings_put_Enabled(set, test->enabled);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
/* FIXME: Remove once implemented */
|
||||
|
@ -1138,9 +1141,6 @@ todo_wine
|
|||
return;
|
||||
}
|
||||
|
||||
hr = ITaskSettings_put_Enabled(set, test->enabled);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
if (!test->delete_expired_task_after[0])
|
||||
hr = ITaskSettings_put_DeleteExpiredTaskAfter(set, NULL);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue