taskschd: Implement ITaskSettings_put_AllowDemandStart.

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-29 10:05:36 +01:00 committed by Alexandre Julliard
parent 412a4a0620
commit f186114676
2 changed files with 7 additions and 3 deletions

View File

@ -898,8 +898,13 @@ static HRESULT WINAPI TaskSettings_get_AllowDemandStart(ITaskSettings *iface, VA
static HRESULT WINAPI TaskSettings_put_AllowDemandStart(ITaskSettings *iface, VARIANT_BOOL allow)
{
FIXME("%p,%d: stub\n", iface, allow);
return E_NOTIMPL;
TaskSettings *taskset = impl_from_ITaskSettings(iface);
TRACE("%p,%d\n", iface, allow);
taskset->allow_on_demand_start = allow ? TRUE : FALSE;
return S_OK;
}
static HRESULT WINAPI TaskSettings_get_RestartInterval(ITaskSettings *iface, BSTR *interval)

View File

@ -1156,7 +1156,6 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = ITaskSettings_put_AllowDemandStart(set, test->allow_on_demand_start);
todo_wine
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
/* FIXME: set IIdleSettings and INetworkSettings */