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:
parent
059382a3d3
commit
01f6313659
@ -951,8 +951,13 @@ static HRESULT WINAPI TaskSettings_get_RestartCount(ITaskSettings *iface, INT *c
|
|||||||
|
|
||||||
static HRESULT WINAPI TaskSettings_put_RestartCount(ITaskSettings *iface, INT count)
|
static HRESULT WINAPI TaskSettings_put_RestartCount(ITaskSettings *iface, INT count)
|
||||||
{
|
{
|
||||||
FIXME("%p,%d: stub\n", iface, count);
|
TaskSettings *taskset = impl_from_ITaskSettings(iface);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
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)
|
static HRESULT WINAPI TaskSettings_get_MultipleInstances(ITaskSettings *iface, TASK_INSTANCES_POLICY *policy)
|
||||||
|
@ -1105,6 +1105,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
|
|||||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||||
|
|
||||||
hr = ITaskSettings_put_RestartCount(set, test->restart_count);
|
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
|
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 */
|
||||||
@ -1114,9 +1117,6 @@ todo_wine
|
|||||||
return;
|
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);
|
hr = ITaskSettings_put_StopIfGoingOnBatteries(set, test->stop_if_going_on_batteries);
|
||||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user