mirror of
https://github.com/reactos/reactos.git
synced 2024-07-03 03:04:22 +00:00
[SAMSRV]
Implement SamIFree_SAMPR_RETURNED_USTRING_ARRAY and SamIFree_SAMPR_ULONG_ARRAY. These functions are used to free structures that were allocated by calls to Samr-functions. svn path=/trunk/; revision=57516
This commit is contained in:
parent
9050f658d1
commit
3c50db37b6
|
@ -63,4 +63,39 @@ SampInitializeRegistry(VOID)
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
SamIFree_SAMPR_RETURNED_USTRING_ARRAY(PSAMPR_RETURNED_USTRING_ARRAY Ptr)
|
||||
{
|
||||
ULONG i;
|
||||
|
||||
if (Ptr != NULL)
|
||||
{
|
||||
if (Ptr->Element != NULL)
|
||||
{
|
||||
for (i = 0; i < Ptr->Count; i++)
|
||||
{
|
||||
if (Ptr->Element[i].Buffer != NULL)
|
||||
MIDL_user_free(Ptr->Element[i].Buffer);
|
||||
}
|
||||
|
||||
MIDL_user_free(Ptr->Element);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
SamIFree_SAMPR_ULONG_ARRAY(PSAMPR_ULONG_ARRAY Ptr)
|
||||
{
|
||||
if (Ptr != NULL)
|
||||
{
|
||||
if (Ptr->Element != NULL)
|
||||
MIDL_user_free(Ptr->Element);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
@ stub SamIFree_SAMPR_GET_MEMBERS_BUFFER
|
||||
@ stub SamIFree_SAMPR_GROUP_INFO_BUFFER
|
||||
@ stub SamIFree_SAMPR_PSID_ARRAY
|
||||
@ stub SamIFree_SAMPR_RETURNED_USTRING_ARRAY
|
||||
@ stdcall SamIFree_SAMPR_RETURNED_USTRING_ARRAY(ptr)
|
||||
@ stub SamIFree_SAMPR_SR_SECURITY_DESCRIPTOR
|
||||
@ stub SamIFree_SAMPR_ULONG_ARRAY
|
||||
@ stdcall SamIFree_SAMPR_ULONG_ARRAY(ptr)
|
||||
@ stub SamIFree_SAMPR_USER_INFO_BUFFER
|
||||
@ stub SamIGetPrivateData
|
||||
@ stub SamIGetSerialNumberDomain
|
||||
|
|
Loading…
Reference in a new issue