server: Make alloc_handle use attributes instead of inherit flag.
diff --git a/server/process.c b/server/process.c
index 401c1ec..3f7daf3 100644
--- a/server/process.c
+++ b/server/process.c
@@ -892,7 +892,7 @@
         goto done;
 
     if (!(info->data = memdup( get_req_data(), info->data_size ))) goto done;
-    reply->info = alloc_handle( current->process, info, SYNCHRONIZE, FALSE );
+    reply->info = alloc_handle( current->process, info, SYNCHRONIZE, 0 );
 
  done:
     release_object( info );
@@ -909,9 +909,9 @@
         reply->pid = get_process_id( info->process );
         reply->tid = get_thread_id( info->thread );
         reply->phandle = alloc_handle( current->process, info->process,
-                                       req->process_access, req->process_attr & OBJ_INHERIT );
+                                       req->process_access, req->process_attr );
         reply->thandle = alloc_handle( current->process, info->thread,
-                                       req->thread_access, req->thread_attr & OBJ_INHERIT );
+                                       req->thread_access, req->thread_attr );
         reply->success = is_process_init_done( info->process );
         release_object( info );
     }
@@ -943,11 +943,11 @@
     {
         struct process *parent_process = info->owner->process;
         reply->hstdin  = duplicate_handle( parent_process, info->hstdin, process,
-                                           0, TRUE, DUPLICATE_SAME_ACCESS );
+                                           0, OBJ_INHERIT, DUPLICATE_SAME_ACCESS );
         reply->hstdout = duplicate_handle( parent_process, info->hstdout, process,
-                                           0, TRUE, DUPLICATE_SAME_ACCESS );
+                                           0, OBJ_INHERIT, DUPLICATE_SAME_ACCESS );
         reply->hstderr = duplicate_handle( parent_process, info->hstderr, process,
-                                           0, TRUE, DUPLICATE_SAME_ACCESS );
+                                           0, OBJ_INHERIT, DUPLICATE_SAME_ACCESS );
         /* some handles above may have been invalid; this is not an error */
         if (get_error() == STATUS_INVALID_HANDLE ||
             get_error() == STATUS_OBJECT_TYPE_MISMATCH) clear_error();
@@ -1009,8 +1009,7 @@
     reply->handle = 0;
     if (process)
     {
-        reply->handle = alloc_handle( current->process, process, req->access,
-                                      req->attributes & OBJ_INHERIT );
+        reply->handle = alloc_handle( current->process, process, req->access, req->attributes );
         release_object( process );
     }
 }