server: Add security descriptor field to object struct.

This commit is contained in:
Vitaliy Margolen 2007-02-06 21:44:15 -07:00 committed by Alexandre Julliard
parent 2051bcccca
commit 5ec1718d74
2 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@ void *alloc_object( const struct object_ops *ops )
obj->refcount = 1;
obj->ops = ops;
obj->name = NULL;
obj->sd = NULL;
list_init( &obj->wait_queue );
#ifdef DEBUG_OBJECTS
list_add_head( &object_list, &obj->obj_list );
@ -278,6 +279,7 @@ void release_object( void *ptr )
assert( list_empty( &obj->wait_queue ));
obj->ops->destroy( obj );
if (obj->name) free_name( obj );
free( obj->sd );
#ifdef DEBUG_OBJECTS
list_remove( &obj->obj_list );
memset( obj, 0xaa, obj->ops->size );

View File

@ -88,6 +88,7 @@ struct object
const struct object_ops *ops;
struct list wait_queue;
struct object_name *name;
struct security_descriptor *sd;
#ifdef DEBUG_OBJECTS
struct list obj_list;
#endif