Added a security token object in wineserver.
diff --git a/server/thread.c b/server/thread.c
index 9a261da..6b451fe 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -178,6 +178,8 @@
return NULL;
}
+ thread->token = (struct token *) grab_object( process->token );
+
set_fd_events( thread->request_fd, POLLIN ); /* start listening to events */
add_process_thread( thread->process, thread );
return thread;
@@ -246,6 +248,7 @@
cleanup_thread( thread );
release_object( thread->process );
if (thread->id) free_ptid( thread->id );
+ if (thread->token) release_object( thread->token );
}
/* dump a thread on stdout for debugging purposes */