[ADVAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Tue, 27 Aug 2013 20:58:29 +0000 (20:58 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 27 Aug 2013 20:58:29 +0000 (20:58 +0000)
GetSidSubAuthority and GetSidSubAuthorityCount: Set last error code to ERROR_SUCCESS before calling the Rtl function.

svn path=/trunk/; revision=59842

reactos/dll/win32/advapi32/sec/sid.c

index 1b950be..7148647 100644 (file)
@@ -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);
 }