Commit 175dc763 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

taskschd: ITaskService::NewTask doesn't need a server connection.

parent 67ad1d85
......@@ -2347,15 +2347,10 @@ static HRESULT WINAPI TaskService_GetRunningTasks(ITaskService *iface, LONG flag
static HRESULT WINAPI TaskService_NewTask(ITaskService *iface, DWORD flags, ITaskDefinition **definition)
{
TaskService *task_svc = impl_from_ITaskService(iface);
TRACE("%p,%x,%p\n", iface, flags, definition);
if (!definition) return E_POINTER;
if (!task_svc->connected)
return HRESULT_FROM_WIN32(ERROR_ONLY_IF_CONNECTED);
if (flags)
FIXME("unsupported flags %x\n", flags);
......
......@@ -1099,9 +1099,6 @@ static void test_TaskDefinition(void)
V_VT(&v_null) = VT_NULL;
hr = ITaskService_Connect(service, v_null, v_null, v_null, v_null);
ok(hr == S_OK, "Connect error %#x\n", hr);
hr = ITaskService_NewTask(service, 0, &taskdef);
ok(hr == S_OK, "NewTask error %#x\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment