server: Make alloc_handle use attributes instead of inherit flag.
diff --git a/server/sock.c b/server/sock.c
index 6e2acbb..2cbd100 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -773,8 +773,7 @@
reply->handle = 0;
if ((obj = create_socket( req->family, req->type, req->protocol, req->flags )) != NULL)
{
- 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 );
}
}
@@ -787,8 +786,7 @@
reply->handle = 0;
if ((sock = accept_socket( req->lhandle )) != NULL)
{
- reply->handle = alloc_handle( current->process, &sock->obj, req->access,
- req->attributes & OBJ_INHERIT );
+ reply->handle = alloc_handle( current->process, &sock->obj, req->access, req->attributes );
sock->wparam = reply->handle; /* wparam for message is the socket handle */
sock_reselect( sock );
release_object( &sock->obj );