[ADVAPI32]

GetSidSubAuthority and GetSidSubAuthorityCount: Set last error code to ERROR_SUCCESS before calling the Rtl function.

svn path=/trunk/; revision=59842
This commit is contained in:
Eric Kohl 2013-08-27 20:58:29 +00:00
parent d317c64bae
commit 05f3a7e599

View file

@ -1499,6 +1499,7 @@ WINAPI
GetSidSubAuthority(PSID pSid, GetSidSubAuthority(PSID pSid,
DWORD nSubAuthority) DWORD nSubAuthority)
{ {
SetLastError(ERROR_SUCCESS);
return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority); return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority);
} }
@ -1510,6 +1511,7 @@ PUCHAR
WINAPI WINAPI
GetSidSubAuthorityCount(PSID pSid) GetSidSubAuthorityCount(PSID pSid)
{ {
SetLastError(ERROR_SUCCESS);
return RtlSubAuthorityCountSid(pSid); return RtlSubAuthorityCountSid(pSid);
} }