- Send whole OBJECT_ATTRIBUTES.Attributes to the server not just an
inherit flag.
- Pass DesiredAccess to the server when creating mailslot.
diff --git a/server/handle.c b/server/handle.c
index a5b286b..b865fd3 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include "windef.h"
+#include "winternl.h"
#include "handle.h"
#include "process.h"
@@ -521,7 +522,7 @@
/* open a new handle to an existing object */
obj_handle_t open_object( const struct namespace *namespace, const WCHAR *name, size_t len,
- const struct object_ops *ops, unsigned int access, int inherit )
+ const struct object_ops *ops, unsigned int access, unsigned int attr )
{
obj_handle_t handle = 0;
struct object *obj = find_object( namespace, name, len );
@@ -530,7 +531,7 @@
if (ops && obj->ops != ops)
set_error( STATUS_OBJECT_TYPE_MISMATCH );
else
- handle = alloc_handle( current->process, obj, access, inherit );
+ handle = alloc_handle( current->process, obj, access, attr & OBJ_INHERIT );
release_object( obj );
}
else