Module: wine Branch: master Commit: 5ec1718d745ef795ac890f4580e34a0b44bbc94d URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ec1718d745ef795ac890f4580...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Tue Feb 6 21:44:15 2007 -0700
server: Add security descriptor field to object struct.
---
server/object.c | 2 ++ server/object.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/server/object.c b/server/object.c index 63465f2..095d018 100644 --- a/server/object.c +++ b/server/object.c @@ -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 ); diff --git a/server/object.h b/server/object.h index 1a75e4c..a2d7029 100644 --- a/server/object.h +++ b/server/object.h @@ -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