Commit fac1aabb authored by Tim Clem's avatar Tim Clem Committed by Alexandre Julliard

ntdll: Decrement thread count from exit_thread and exit the process if needed.

parent f88affa2
......@@ -1429,6 +1429,8 @@ static DECLSPEC_NORETURN void exit_thread( int status )
pthread_sigmask( SIG_BLOCK, &server_block_set, NULL );
if (InterlockedDecrement( &nb_threads ) <= 0) exit_process( status );
if ((teb = InterlockedExchangePointer( &prev_teb, NtCurrentTeb() )))
{
struct ntdll_thread_data *thread_data = (struct ntdll_thread_data *)&teb->GdiTebBatch;
......
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