taskschd: Implement ITaskSettings_put_RestartCount.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-11-27 10:41:20 +01:00 committed by Alexandre Julliard
parent 059382a3d3
commit 01f6313659
2 changed files with 10 additions and 5 deletions

View File

@ -951,8 +951,13 @@ static HRESULT WINAPI TaskSettings_get_RestartCount(ITaskSettings *iface, INT *c
static HRESULT WINAPI TaskSettings_put_RestartCount(ITaskSettings *iface, INT count)
{
FIXME("%p,%d: stub\n", iface, count);
return E_NOTIMPL;
TaskSettings *taskset = impl_from_ITaskSettings(iface);
TRACE("%p,%d\n", iface, count);
taskset->restart_count = count;
return S_OK;
}
static HRESULT WINAPI TaskSettings_get_MultipleInstances(ITaskSettings *iface, TASK_INSTANCES_POLICY *policy)

View File

@ -1105,6 +1105,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_RestartCount(set, test->restart_count);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_MultipleInstances(set, test->policy);
todo_wine
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
/* FIXME: Remove once implemented */
@ -1114,9 +1117,6 @@ todo_wine
return;
}
hr = ITaskSettings_put_MultipleInstances(set, test->policy);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_StopIfGoingOnBatteries(set, test->stop_if_going_on_batteries);
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);