server: Make alloc_handle use attributes instead of inherit flag.
diff --git a/server/thread.c b/server/thread.c
index 51ef5ec..705dc7b 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -828,8 +828,7 @@
{
if (req->suspend) thread->suspend++;
reply->tid = get_thread_id( thread );
- if ((reply->handle = alloc_handle( current->process, thread,
- req->access, req->attributes & OBJ_INHERIT )))
+ if ((reply->handle = alloc_handle( current->process, thread, req->access, req->attributes )))
{
/* thread object will be released when the thread gets killed */
return;
@@ -931,8 +930,7 @@
reply->handle = 0;
if (thread)
{
- reply->handle = alloc_handle( current->process, thread, req->access,
- req->attributes & OBJ_INHERIT );
+ reply->handle = alloc_handle( current->process, thread, req->access, req->attributes );
release_object( thread );
}
}