Author: ekohl
Date: Sun Aug 21 14:56:54 2016
New Revision: 72404
URL:
http://svn.reactos.org/svn/reactos?rev=72404&view=rev
Log:
[LSASRV]
Implement LsaIFree_LSAPR_SR_SECURITY_DESCRIPTOR and LsaIFree_LSAPR_TRANSLATED_NAMES.
Modified:
trunk/reactos/dll/win32/lsasrv/lsasrv.c
trunk/reactos/dll/win32/lsasrv/lsasrv.spec
Modified: trunk/reactos/dll/win32/lsasrv/lsasrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/lsasrv.c?…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/lsasrv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/lsasrv.c [iso-8859-1] Sun Aug 21 14:56:54 2016
@@ -206,6 +206,46 @@
}
midl_user_free(Ptr->Domains);
+ }
+
+ midl_user_free(Ptr);
+ }
+}
+
+
+VOID
+NTAPI
+LsaIFree_LSAPR_SR_SECURITY_DESCRIPTOR(
+ PLSAPR_SR_SECURITY_DESCRIPTOR Ptr)
+{
+ if (Ptr != NULL)
+ {
+ if (Ptr->SecurityDescriptor != NULL)
+ midl_user_free(Ptr->SecurityDescriptor);
+
+ midl_user_free(Ptr);
+ }
+}
+
+
+VOID
+NTAPI
+LsaIFree_LSAPR_TRANSLATED_NAMES(
+ PLSAPR_TRANSLATED_NAMES Ptr)
+{
+ ULONG i;
+
+ if (Ptr != NULL)
+ {
+ if (Ptr->Names != NULL)
+ {
+ for (i = 0; i < Ptr->Entries; i++)
+ {
+ if (Ptr->Names[i].Name.Buffer != NULL)
+ midl_user_free(Ptr->Names[i].Name.Buffer);
+ }
+
+ midl_user_free(Ptr->Names);
}
midl_user_free(Ptr);
Modified: trunk/reactos/dll/win32/lsasrv/lsasrv.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/lsasrv.sp…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/lsasrv.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/lsasrv.spec [iso-8859-1] Sun Aug 21 14:56:54 2016
@@ -38,8 +38,8 @@
@ stdcall LsaIFree_LSAPR_PRIVILEGE_ENUM_BUFFER(ptr)
@ stdcall LsaIFree_LSAPR_PRIVILEGE_SET(ptr)
@ stdcall LsaIFree_LSAPR_REFERENCED_DOMAIN_LIST(ptr)
- @ stub LsaIFree_LSAPR_SR_SECURITY_DESCRIPTOR
- @ stub LsaIFree_LSAPR_TRANSLATED_NAMES
+ @ stdcall LsaIFree_LSAPR_SR_SECURITY_DESCRIPTOR(ptr)
+ @ stdcall LsaIFree_LSAPR_TRANSLATED_NAMES(ptr)
@ stub LsaIFree_LSAPR_TRANSLATED_SIDS
@ stub LsaIFree_LSAPR_TRUSTED_DOMAIN_INFO
@ stub LsaIFree_LSAPR_TRUSTED_ENUM_BUFFER