diff --git a/dlls/taskschd/task.c b/dlls/taskschd/task.c index 489ade3c402..8b73bf04750 100644 --- a/dlls/taskschd/task.c +++ b/dlls/taskschd/task.c @@ -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); diff --git a/dlls/taskschd/tests/scheduler.c b/dlls/taskschd/tests/scheduler.c index 34e4625bd11..35e6dc03fe3 100644 --- a/dlls/taskschd/tests/scheduler.c +++ b/dlls/taskschd/tests/scheduler.c @@ -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);