[SAMSRV] In SamrGetAliasMembership(), perform STATUS_OBJECT_NAME_NOT_FOUND status fixup in the assignment loop as done in the allocation loop.

This avoids this function returning failure while everything actually succeeded.
This commit is contained in:
Hermès Bélusca-Maïto 2018-06-24 03:30:10 +02:00
parent 62384951c8
commit cf56db2eb3
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -3538,6 +3538,9 @@ TRACE("Open %S\n", MemberSidString);
SampRegCloseKey(&MemberKeyHandle);
}
if (Status == STATUS_OBJECT_NAME_NOT_FOUND)
Status = STATUS_SUCCESS;
LocalFree(MemberSidString);
}