server: Make alloc_handle use attributes instead of inherit flag.
diff --git a/server/semaphore.c b/server/semaphore.c
index 2dd6beb..d64bfbe 100644
--- a/server/semaphore.c
+++ b/server/semaphore.c
@@ -159,8 +159,7 @@
 
     if ((sem = create_semaphore( root, &name, req->attributes, req->initial, req->max )))
     {
-        reply->handle = alloc_handle( current->process, sem, req->access,
-                                      req->attributes & OBJ_INHERIT );
+        reply->handle = alloc_handle( current->process, sem, req->access, req->attributes );
         release_object( sem );
     }
 
@@ -180,8 +179,7 @@
 
     if ((sem = open_object_dir( root, &name, req->attributes, &semaphore_ops )))
     {
-        reply->handle = alloc_handle( current->process, &sem->obj, req->access,
-                                      req->attributes & OBJ_INHERIT );
+        reply->handle = alloc_handle( current->process, &sem->obj, req->access, req->attributes );
         release_object( sem );
     }