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

This commit is contained in:
Dmitry Timoshkov 2014-02-21 11:35:38 +09:00 committed by Alexandre Julliard
parent 67ad1d85ac
commit 175dc76336
2 changed files with 0 additions and 8 deletions

View File

@ -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);

View File

@ -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);