mstask: Implement ITask::GetExitCode().

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-06-11 17:24:27 +08:00 committed by Alexandre Julliard
parent e7243523cb
commit 9eca94fc12
1 changed files with 7 additions and 1 deletions

View File

@ -685,8 +685,14 @@ static HRESULT WINAPI MSTASK_ITask_GetExitCode(ITask *iface, DWORD *exit_code)
TRACE("(%p, %p)\n", iface, exit_code);
if (This->status == SCHED_S_TASK_NOT_SCHEDULED)
{
*exit_code = 0;
return SCHED_S_TASK_HAS_NOT_RUN;
}
*exit_code = This->exit_code;
return SCHED_S_TASK_HAS_NOT_RUN; /* FIXME */
return S_OK;
}
static HRESULT WINAPI MSTASK_ITask_SetComment(ITask *iface, LPCWSTR comment)