server: Set appropriate status for a terminated thread.

This commit is contained in:
Dmitry Timoshkov 2013-05-13 16:43:58 +09:00 committed by Alexandre Julliard
parent 2e0ff5b780
commit fd76b695b9
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ static void set_thread_info( struct thread *thread,
if ((req->affinity & thread->process->affinity) != req->affinity) if ((req->affinity & thread->process->affinity) != req->affinity)
set_error( STATUS_INVALID_PARAMETER ); set_error( STATUS_INVALID_PARAMETER );
else if (thread->state == TERMINATED) else if (thread->state == TERMINATED)
set_error( STATUS_ACCESS_DENIED ); set_error( STATUS_THREAD_IS_TERMINATING );
else if (set_thread_affinity( thread, req->affinity )) else if (set_thread_affinity( thread, req->affinity ))
file_set_error(); file_set_error();
} }