taskschd: Implement ITaskSettings_put_RunOnlyIfNetworkAvailable.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
62dd24af4a
commit
ee12d7c917
|
@ -1107,8 +1107,13 @@ static HRESULT WINAPI TaskSettings_get_RunOnlyIfNetworkAvailable(ITaskSettings *
|
|||
|
||||
static HRESULT WINAPI TaskSettings_put_RunOnlyIfNetworkAvailable(ITaskSettings *iface, VARIANT_BOOL run)
|
||||
{
|
||||
FIXME("%p,%d: stub\n", iface, run);
|
||||
return E_NOTIMPL;
|
||||
TaskSettings *taskset = impl_from_ITaskSettings(iface);
|
||||
|
||||
TRACE("%p,%d\n", iface, run);
|
||||
|
||||
taskset->run_only_if_network_available = run ? TRUE : FALSE;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI TaskSettings_get_ExecutionTimeLimit(ITaskSettings *iface, BSTR *limit)
|
||||
|
|
|
@ -1123,6 +1123,12 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
|
|||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
hr = ITaskSettings_put_RunOnlyIfNetworkAvailable(set, test->run_only_if_network_available);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
if (!test->execution_time_limit[0])
|
||||
hr = ITaskSettings_put_ExecutionTimeLimit(set, NULL);
|
||||
else
|
||||
hr = ITaskSettings_put_ExecutionTimeLimit(set, test->execution_time_limit);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
/* FIXME: Remove once implemented */
|
||||
|
@ -1132,12 +1138,6 @@ todo_wine
|
|||
return;
|
||||
}
|
||||
|
||||
if (!test->execution_time_limit[0])
|
||||
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);
|
||||
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue