mstask: Return SCHED_S_TASK_RUNNING from ITask::GetStatus() if there are running task instances.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2018-05-11 12:36:36 +08:00 committed by Alexandre Julliard
parent 8cfdaa45bb
commit a652d51e06
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ static HRESULT WINAPI MSTASK_ITask_GetStatus(ITask *iface, HRESULT *status)
TRACE("(%p, %p)\n", iface, status);
*status = This->status;
*status = This->instance_count ? SCHED_S_TASK_RUNNING : This->status;
return S_OK;
}