Commit fd76b695 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

server: Set appropriate status for a terminated thread.

parent 2e0ff5b7
......@@ -481,7 +481,7 @@ static void set_thread_info( struct thread *thread,
if ((req->affinity & thread->process->affinity) != req->affinity)
set_error( STATUS_INVALID_PARAMETER );
else if (thread->state == TERMINATED)
set_error( STATUS_ACCESS_DENIED );
set_error( STATUS_THREAD_IS_TERMINATING );
else if (set_thread_affinity( thread, req->affinity ))
file_set_error();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment