Author: akhaldi
Date: Sat Oct 25 15:28:29 2014
New Revision: 64984
URL:
http://svn.reactos.org/svn/reactos?rev=64984&view=rev
Log:
[ADVAPI32]
* Update AllocateAndInitializeSid().
CORE-8540
Modified:
trunk/reactos/dll/win32/advapi32/wine/security.c
Modified: trunk/reactos/dll/win32/advapi32/wine/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/wine/se…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/wine/security.c [iso-8859-1] Sat Oct 25 15:28:29
2014
@@ -580,42 +580,36 @@
return DuplicateTokenEx( baseToken, MAXIMUM_ALLOWED, NULL, level, type, newToken );
}
-/*
- * @implemented
+/******************************************************************************
+ * AllocateAndInitializeSid [ADVAPI32.@]
+ *
+ * PARAMS
+ * pIdentifierAuthority []
+ * nSubAuthorityCount []
+ * nSubAuthority0 []
+ * nSubAuthority1 []
+ * nSubAuthority2 []
+ * nSubAuthority3 []
+ * nSubAuthority4 []
+ * nSubAuthority5 []
+ * nSubAuthority6 []
+ * nSubAuthority7 []
+ * pSid []
*/
BOOL WINAPI
-AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
- BYTE nSubAuthorityCount,
- DWORD dwSubAuthority0,
- DWORD dwSubAuthority1,
- DWORD dwSubAuthority2,
- DWORD dwSubAuthority3,
- DWORD dwSubAuthority4,
- DWORD dwSubAuthority5,
- DWORD dwSubAuthority6,
- DWORD dwSubAuthority7,
- PSID *pSid)
-{
- NTSTATUS Status;
-
- Status = RtlAllocateAndInitializeSid(pIdentifierAuthority,
- nSubAuthorityCount,
- dwSubAuthority0,
- dwSubAuthority1,
- dwSubAuthority2,
- dwSubAuthority3,
- dwSubAuthority4,
- dwSubAuthority5,
- dwSubAuthority6,
- dwSubAuthority7,
- pSid);
- if (!NT_SUCCESS(Status))
- {
- SetLastError(RtlNtStatusToDosError(Status));
- return FALSE;
- }
-
- return TRUE;
+AllocateAndInitializeSid( PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
+ BYTE nSubAuthorityCount,
+ DWORD nSubAuthority0, DWORD nSubAuthority1,
+ DWORD nSubAuthority2, DWORD nSubAuthority3,
+ DWORD nSubAuthority4, DWORD nSubAuthority5,
+ DWORD nSubAuthority6, DWORD nSubAuthority7,
+ PSID *pSid )
+{
+ return set_ntstatus( RtlAllocateAndInitializeSid(
+ pIdentifierAuthority, nSubAuthorityCount,
+ nSubAuthority0, nSubAuthority1, nSubAuthority2,
nSubAuthority3,
+ nSubAuthority4, nSubAuthority5, nSubAuthority6,
nSubAuthority7,
+ pSid ));
}
/*