[NETAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 15 Sep 2013 07:51:27 +0000 (07:51 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 15 Sep 2013 07:51:27 +0000 (07:51 +0000)
NetLocalGroupGetMembers: Do not overwrite the MembersInfo struct.

svn path=/trunk/; revision=60124

reactos/dll/win32/netapi32/local_group.c

index 0f301af..0385df6 100644 (file)
@@ -1587,6 +1587,7 @@ NetLocalGroupGetMembers(
                        EnumContext->Sids[i],
                        SidLength);
                 Ptr = (PVOID)((ULONG_PTR)Ptr + SidLength);
+                MembersInfo0++;
                 break;
 
             case 1:
@@ -1608,6 +1609,7 @@ NetLocalGroupGetMembers(
                 memcpy(MembersInfo1->lgrmi1_name,
                        EnumContext->Names[i].Name.Buffer,
                        EnumContext->Names[i].Name.Length);
+                MembersInfo1++;
                 break;
 
             case 2:
@@ -1636,6 +1638,7 @@ NetLocalGroupGetMembers(
                 memcpy(Ptr,
                        EnumContext->Names[i].Name.Buffer,
                        EnumContext->Names[i].Name.Length);
+                MembersInfo2++;
                 break;
 
             case 3:
@@ -1653,6 +1656,7 @@ NetLocalGroupGetMembers(
                 memcpy(Ptr,
                        EnumContext->Names[i].Name.Buffer,
                        EnumContext->Names[i].Name.Length);
+                MembersInfo3++;
                 break;
         }
     }