[NETAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 1 Sep 2013 23:32:15 +0000 (23:32 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 1 Sep 2013 23:32:15 +0000 (23:32 +0000)
NetLocalGroupAdd: Set the admin comment only if it is not NULL.

svn path=/trunk/; revision=59958

reactos/dll/win32/netapi32/local_group.c

index 9f49f50..6cdfce1 100644 (file)
@@ -447,7 +447,7 @@ NetLocalGroupAdd(
     TRACE("Created alias \"%wZ\" (RID: %lu)\n", &AliasName, RelativeId);
 
     /* Set the admin comment */
-    if (level == 1)
+    if (aliascomment != NULL)
     {
         RtlInitUnicodeString(&AdminComment.AdminComment, aliascomment);