GetSidSubAuthority and GetSidSubAuthorityCount: Set last error code to ERROR_SUCCESS before calling the Rtl function.
svn path=/trunk/; revision=59842
GetSidSubAuthority(PSID pSid,
DWORD nSubAuthority)
{
GetSidSubAuthority(PSID pSid,
DWORD nSubAuthority)
{
+ SetLastError(ERROR_SUCCESS);
return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority);
}
return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority);
}
WINAPI
GetSidSubAuthorityCount(PSID pSid)
{
WINAPI
GetSidSubAuthorityCount(PSID pSid)
{
+ SetLastError(ERROR_SUCCESS);
return RtlSubAuthorityCountSid(pSid);
}
return RtlSubAuthorityCountSid(pSid);
}