server: Add the name length to the object_attributes structure so that other variable length data can be present after object_attributes.
diff --git a/server/security.h b/server/security.h
index 50fba52..ebdf95f 100644
--- a/server/security.h
+++ b/server/security.h
@@ -131,3 +131,8 @@
 /* determines whether an object_attributes struct is valid in a buffer
  * and calls set_error appropriately */
 extern int objattr_is_valid( const struct object_attributes *objattr, data_size_t size );
+static inline void objattr_get_name( const struct object_attributes *objattr, struct unicode_str *name )
+{
+    name->len = ((objattr->name_len) / sizeof(WCHAR)) * sizeof(WCHAR);
+    name->str = (const WCHAR *)objattr + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
+}