server: Make alloc_handle use attributes instead of inherit flag.
diff --git a/server/mapping.c b/server/mapping.c
index cc81e37..c9813f2 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -389,8 +389,7 @@
if ((obj = create_mapping( root, &name, req->attributes, size, req->protect, req->file_handle )))
{
- reply->handle = alloc_handle( current->process, obj, req->access,
- req->attributes & OBJ_INHERIT );
+ reply->handle = alloc_handle( current->process, obj, req->access, req->attributes );
release_object( obj );
}
@@ -410,8 +409,7 @@
if ((mapping = open_object_dir( root, &name, req->attributes, &mapping_ops )))
{
- reply->handle = alloc_handle( current->process, &mapping->obj, req->access,
- req->attributes & OBJ_INHERIT );
+ reply->handle = alloc_handle( current->process, &mapping->obj, req->access, req->attributes );
release_object( mapping );
}