mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[SAMSRV]
SamrGetAliasMembership: Do not overwrite enties of the RID array. svn path=/trunk/; revision=61536
This commit is contained in:
parent
d3efc2ffdd
commit
aa4d139a0c
1 changed files with 5 additions and 1 deletions
|
@ -3250,6 +3250,7 @@ SamrGetAliasMembership(IN SAMPR_HANDLE DomainHandle,
|
|||
ULONG ValueCount;
|
||||
ULONG DataLength;
|
||||
ULONG i, j;
|
||||
ULONG RidIndex;
|
||||
NTSTATUS Status;
|
||||
WCHAR NameBuffer[9];
|
||||
|
||||
|
@ -3334,6 +3335,7 @@ TRACE("Open %S\n", MemberSidString);
|
|||
goto done;
|
||||
}
|
||||
|
||||
RidIndex = 0;
|
||||
for (i = 0; i < SidArray->Count; i++)
|
||||
{
|
||||
ConvertSidToStringSid(SidArray->Sids[i].SidPointer, &MemberSidString);
|
||||
|
@ -3365,7 +3367,9 @@ TRACE("Open %S\n", MemberSidString);
|
|||
NULL);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
RidArray[j] = wcstoul(NameBuffer, NULL, 16);
|
||||
/* FIXME: Do not return each RID more than once. */
|
||||
RidArray[RidIndex] = wcstoul(NameBuffer, NULL, 16);
|
||||
RidIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue