Author: ekohl
Date: Sun Sep 15 07:51:27 2013
New Revision: 60124
URL:
http://svn.reactos.org/svn/reactos?rev=60124&view=rev
Log:
[NETAPI32]
NetLocalGroupGetMembers: Do not overwrite the MembersInfo struct.
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] Sun Sep 15 07:51:27 2013
@@ -1587,6 +1587,7 @@
EnumContext->Sids[i],
SidLength);
Ptr = (PVOID)((ULONG_PTR)Ptr + SidLength);
+ MembersInfo0++;
break;
case 1:
@@ -1608,6 +1609,7 @@
memcpy(MembersInfo1->lgrmi1_name,
EnumContext->Names[i].Name.Buffer,
EnumContext->Names[i].Name.Length);
+ MembersInfo1++;
break;
case 2:
@@ -1636,6 +1638,7 @@
memcpy(Ptr,
EnumContext->Names[i].Name.Buffer,
EnumContext->Names[i].Name.Length);
+ MembersInfo2++;
break;
case 3:
@@ -1653,6 +1656,7 @@
memcpy(Ptr,
EnumContext->Names[i].Name.Buffer,
EnumContext->Names[i].Name.Length);
+ MembersInfo3++;
break;
}
}