Author: ekohl
Date: Tue Aug 27 20:58:29 2013
New Revision: 59842
URL:
http://svn.reactos.org/svn/reactos?rev=59842&view=rev
Log:
[ADVAPI32]
GetSidSubAuthority and GetSidSubAuthorityCount: Set last error code to ERROR_SUCCESS
before calling the Rtl function.
Modified:
trunk/reactos/dll/win32/advapi32/sec/sid.c
Modified: trunk/reactos/dll/win32/advapi32/sec/sid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sid…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] Tue Aug 27 20:58:29 2013
@@ -1499,6 +1499,7 @@
GetSidSubAuthority(PSID pSid,
DWORD nSubAuthority)
{
+ SetLastError(ERROR_SUCCESS);
return (PDWORD)RtlSubAuthoritySid(pSid, nSubAuthority);
}
@@ -1510,6 +1511,7 @@
WINAPI
GetSidSubAuthorityCount(PSID pSid)
{
+ SetLastError(ERROR_SUCCESS);
return RtlSubAuthorityCountSid(pSid);
}