mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 09:54:40 +00:00
[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:
parent
d317c64bae
commit
05f3a7e599
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue