Author: ekohl
Date: Wed Jun 12 21:37:31 2013
New Revision: 59206
URL:
http://svn.reactos.org/svn/reactos?rev=59206&view=rev
Log:
[NETAPI32]
NetLocalGroupSetInfo: Implement level 1.
Modified:
trunk/reactos/dll/win32/netapi32/local_group.c
Modified: trunk/reactos/dll/win32/netapi32/local_group.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/local_g…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/local_group.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/local_group.c [iso-8859-1] Wed Jun 12 21:37:31 2013
@@ -1718,7 +1718,7 @@
SAM_HANDLE DomainHandle = NULL;
SAM_HANDLE AliasHandle = NULL;
ALIAS_NAME_INFORMATION AliasNameInfo;
-
+ ALIAS_ADM_COMMENT_INFORMATION AdminCommentInfo;
NET_API_STATUS ApiStatus = NERR_Success;
NTSTATUS Status = STATUS_SUCCESS;
@@ -1808,6 +1808,22 @@
Status = SamSetInformationAlias(AliasHandle,
AliasNameInformation,
&AliasNameInfo);
+ if (!NT_SUCCESS(Status))
+ {
+ TRACE("SamSetInformationAlias failed (ApiStatus %lu)\n",
ApiStatus);
+ ApiStatus = NetpNtStatusToApiStatus(Status);
+ goto done;
+ }
+ break;
+
+ case 1:
+ /* Set the alias admin comment */
+ RtlInitUnicodeString(&AdminCommentInfo.AdminComment,
+ ((PLOCALGROUP_INFO_1)buf)->lgrpi1_comment);
+
+ Status = SamSetInformationAlias(AliasHandle,
+ AliasAdminCommentInformation,
+ &AdminCommentInfo);
if (!NT_SUCCESS(Status))
{
TRACE("SamSetInformationAlias failed (ApiStatus %lu)\n",
ApiStatus);