Author: ekohl
Date: Sat Apr 13 15:33:56 2013
New Revision: 58737
URL:
http://svn.reactos.org/svn/reactos?rev=58737&view=rev
Log:
[SAMSRV]
- Implement SamIFree_SAMPR_ENUMERATION_BUFFER.
- Fix some typos in the spec file.
Modified:
trunk/reactos/dll/win32/samsrv/samsrv.c
trunk/reactos/dll/win32/samsrv/samsrv.spec
Modified: trunk/reactos/dll/win32/samsrv/samsrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samsrv.c?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samsrv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samsrv.c [iso-8859-1] Sat Apr 13 15:33:56 2013
@@ -103,6 +103,30 @@
VOID
NTAPI
+SamIFree_SAMPR_ENUMERATION_BUFFER(PSAMPR_ENUMERATION_BUFFER Ptr)
+{
+ ULONG i;
+
+ if (Ptr != NULL)
+ {
+ if (Ptr->Buffer != NULL)
+ {
+ for (i = 0; i < Ptr->EntriesRead; i++)
+ {
+ if (Ptr->Buffer[i].Name.Buffer != NULL)
+ MIDL_user_free(Ptr->Buffer[i].Name.Buffer);
+ }
+
+ MIDL_user_free(Ptr->Buffer);
+ }
+
+ MIDL_user_free(Ptr);
+ }
+}
+
+
+VOID
+NTAPI
SamIFree_SAMPR_PSID_ARRAY(PSAMPR_PSID_ARRAY Ptr)
{
if (Ptr != NULL)
Modified: trunk/reactos/dll/win32/samsrv/samsrv.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samsrv.sp…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samsrv.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samsrv.spec [iso-8859-1] Sat Apr 13 15:33:56 2013
@@ -20,7 +20,7 @@
@ stub SamIFree_SAMPR_ALIAS_INFO_BUFFER
@ stub SamIFree_SAMPR_DISPLAY_INFO_BUFFER
@ stub SamIFree_SAMPR_DOMAIN_INFO_BUFFER
-@ stub SamIFree_SAMPR_ENUMERATION_BUFFER
+@ stdcall SamIFree_SAMPR_ENUMERATION_BUFFER(ptr)
@ stub SamIFree_SAMPR_GET_GROUPS_BUFFER
@ stub SamIFree_SAMPR_GET_MEMBERS_BUFFER
@ stub SamIFree_SAMPR_GROUP_INFO_BUFFER
@@ -36,13 +36,13 @@
@ stub SamIGetBootKeyInformation
@ stub SamIGetDefaultAdministratorName
@ stub SamIGetFixedAttributes
-@ stub SamIGetinterdomainTrustAccountPasswordsForUpgrade
+@ stub SamIGetInterdomainTrustAccountPasswordsForUpgrade
@ stub SamIGetPrivateData
@ stub SamIGetResourceGroupmembershipsTransitive
@ stub SamIGetSerialNumberDomain
-@ stub SamIGetuserLogonInformation
-@ stub SamIGetuserLogonInformation2
-@ stub SamIGetuserLogonInformationEx
+@ stub SamIGetUserLogonInformation
+@ stub SamIGetUserLogonInformation2
+@ stub SamIGetUserLogonInformationEx
@ stub SamIImpersonateNullSession
@ stub SamIIncrementPerformanceCounter
@ stdcall SamIInitialize()