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/mutex.c b/server/mutex.c
index 7064c6f..979f21f 100644
--- a/server/mutex.c
+++ b/server/mutex.c
@@ -205,10 +205,7 @@
         return;
 
     sd = objattr->sd_len ? (const struct security_descriptor *)(objattr + 1) : NULL;
-
-    /* get unicode string */
-    name.len = ((get_req_data_size() - sizeof(*objattr) - objattr->sd_len) / sizeof(WCHAR)) * sizeof(WCHAR);
-    name.str = (const WCHAR *)get_req_data() + (sizeof(*objattr) + objattr->sd_len) / sizeof(WCHAR);
+    objattr_get_name( objattr, &name );
 
     if (objattr->rootdir && !(root = get_directory_obj( current->process, objattr->rootdir, 0 )))
         return;