Commit 5ec1718d authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

server: Add security descriptor field to object struct.

parent 2051bccc
...@@ -178,6 +178,7 @@ void *alloc_object( const struct object_ops *ops ) ...@@ -178,6 +178,7 @@ void *alloc_object( const struct object_ops *ops )
obj->refcount = 1; obj->refcount = 1;
obj->ops = ops; obj->ops = ops;
obj->name = NULL; obj->name = NULL;
obj->sd = NULL;
list_init( &obj->wait_queue ); list_init( &obj->wait_queue );
#ifdef DEBUG_OBJECTS #ifdef DEBUG_OBJECTS
list_add_head( &object_list, &obj->obj_list ); list_add_head( &object_list, &obj->obj_list );
...@@ -278,6 +279,7 @@ void release_object( void *ptr ) ...@@ -278,6 +279,7 @@ void release_object( void *ptr )
assert( list_empty( &obj->wait_queue )); assert( list_empty( &obj->wait_queue ));
obj->ops->destroy( obj ); obj->ops->destroy( obj );
if (obj->name) free_name( obj ); if (obj->name) free_name( obj );
free( obj->sd );
#ifdef DEBUG_OBJECTS #ifdef DEBUG_OBJECTS
list_remove( &obj->obj_list ); list_remove( &obj->obj_list );
memset( obj, 0xaa, obj->ops->size ); memset( obj, 0xaa, obj->ops->size );
......
...@@ -88,6 +88,7 @@ struct object ...@@ -88,6 +88,7 @@ struct object
const struct object_ops *ops; const struct object_ops *ops;
struct list wait_queue; struct list wait_queue;
struct object_name *name; struct object_name *name;
struct security_descriptor *sd;
#ifdef DEBUG_OBJECTS #ifdef DEBUG_OBJECTS
struct list obj_list; struct list obj_list;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment