server: Threads should start off without having an impersonation token.

This commit is contained in:
Robert Shearman 2006-04-26 15:42:35 +01:00 committed by Alexandre Julliard
parent 35596ee290
commit b02e6b0926
1 changed files with 1 additions and 2 deletions

View File

@ -147,6 +147,7 @@ inline static void init_thread_structure( struct thread *thread )
thread->creation_time = time(NULL); thread->creation_time = time(NULL);
thread->exit_time = 0; thread->exit_time = 0;
thread->desktop_users = 0; thread->desktop_users = 0;
thread->token = NULL;
list_init( &thread->mutex_list ); list_init( &thread->mutex_list );
list_init( &thread->system_apc ); list_init( &thread->system_apc );
@ -188,8 +189,6 @@ struct thread *create_thread( int fd, struct process *process )
return NULL; return NULL;
} }
thread->token = (struct token *) grab_object( process->token );
set_fd_events( thread->request_fd, POLLIN ); /* start listening to events */ set_fd_events( thread->request_fd, POLLIN ); /* start listening to events */
add_process_thread( thread->process, thread ); add_process_thread( thread->process, thread );
return thread; return thread;