mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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
1 changed files with 2 additions and 0 deletions
|
@ -1499,6 +1499,7 @@ WINAPI
|
|||
GetSidSubAuthority(PSID pSid,
|
||||
DWORD nSubAuthority)
|
||||
{
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority);
|
||||
}
|
||||
|
||||
|
@ -1510,6 +1511,7 @@ PUCHAR
|
|||
WINAPI
|
||||
GetSidSubAuthorityCount(PSID pSid)
|
||||
{
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
return RtlSubAuthorityCountSid(pSid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue