[SAMSRV]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 14 Jul 2013 14:22:30 +0000 (14:22 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 14 Jul 2013 14:22:30 +0000 (14:22 +0000)
Implement SamIFree_SAMPR_GET_MEMBERS_BUFFER.

svn path=/trunk/; revision=59484

reactos/dll/win32/samsrv/samsrv.c
reactos/dll/win32/samsrv/samsrv.spec

index 0d17100..6feb7be 100644 (file)
@@ -179,6 +179,23 @@ SamIFree_SAMPR_GET_GROUPS_BUFFER(PSAMPR_GET_GROUPS_BUFFER Ptr)
 }
 
 
+VOID
+NTAPI
+SamIFree_SAMPR_GET_MEMBERS_BUFFER(PSAMPR_GET_MEMBERS_BUFFER Ptr)
+{
+    if (Ptr != NULL)
+    {
+        if (Ptr->Members != NULL)
+            MIDL_user_free(Ptr->Members);
+
+        if (Ptr->Attributes != NULL)
+            MIDL_user_free(Ptr->Attributes);
+
+        MIDL_user_free(Ptr);
+    }
+}
+
+
 VOID
 NTAPI
 SamIFree_SAMPR_PSID_ARRAY(PSAMPR_PSID_ARRAY Ptr)
index 39f86ef..8276433 100644 (file)
@@ -22,7 +22,7 @@
 @ stub SamIFree_SAMPR_DOMAIN_INFO_BUFFER
 @ stdcall SamIFree_SAMPR_ENUMERATION_BUFFER(ptr)
 @ stdcall SamIFree_SAMPR_GET_GROUPS_BUFFER(ptr)
-@ stub SamIFree_SAMPR_GET_MEMBERS_BUFFER
+@ stdcall SamIFree_SAMPR_GET_MEMBERS_BUFFER(ptr)
 @ stub SamIFree_SAMPR_GROUP_INFO_BUFFER
 @ stdcall SamIFree_SAMPR_PSID_ARRAY(ptr)
 @ stdcall SamIFree_SAMPR_RETURNED_USTRING_ARRAY(ptr)