}
_SEH2_END;
- /* allocate a SID and copy it */
+ /* Allocate a SID and copy it */
NewSid = ExAllocatePoolWithTag(PoolType, SidSize, TAG_SID);
if (!NewSid)
return STATUS_INSUFFICIENT_RESOURCES;
{
SidSize = RtlLengthRequiredSid(Sid->SubAuthorityCount);
- /* allocate a SID and copy it */
+ /* Allocate a SID and copy it */
NewSid = ExAllocatePoolWithTag(PoolType, SidSize, TAG_SID);
if (NewSid == NULL)
return STATUS_INSUFFICIENT_RESOURCES;
if (((Sid->Revision & 0xF) != SID_REVISION) ||
(Sid->SubAuthorityCount > SID_MAX_SUB_AUTHORITIES))
{
- return STATUS_INVALID_SID;
+ _SEH2_YIELD(return STATUS_INVALID_SID);
}
/* Calculate the SID length and probe the full SID */
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
- return _SEH2_GetExceptionCode();
+ _SEH2_YIELD(return _SEH2_GetExceptionCode());
}
_SEH2_END;
}
RtlCopyMemory(CurrentDest, SrcSidAndAttributes[i].Sid, SidLength);
/* Sanity checks */
- NT_ASSERT(RtlLengthSid(SidAndAttributes[i].Sid) == SidLength);
- NT_ASSERT(RtlValidSid(SidAndAttributes[i].Sid));
+ ASSERT(RtlLengthSid(SidAndAttributes[i].Sid) == SidLength);
+ ASSERT(RtlValidSid(SidAndAttributes[i].Sid));
/* Update the current destination address */
CurrentDest += ALIGN_UP_BY(SidLength, sizeof(ULONG));