[ADVAPI32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 25 Oct 2014 17:46:33 +0000 (17:46 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 25 Oct 2014 17:46:33 +0000 (17:46 +0000)
* Move a couple functions from sec.c to security.c.
CORE-8540

svn path=/trunk/; revision=64989

reactos/dll/win32/advapi32/sec/sec.c
reactos/dll/win32/advapi32/wine/security.c

index d62edc3..9b84496 100644 (file)
@@ -168,29 +168,6 @@ GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR pSecurityDescriptor,
     return TRUE;
 }
 
-
-/*
- * @implemented
- */
-BOOL
-WINAPI
-InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor,
-                             DWORD dwRevision)
-{
-    NTSTATUS Status;
-
-    Status = RtlCreateSecurityDescriptor(pSecurityDescriptor,
-                                         dwRevision);
-    if (!NT_SUCCESS(Status))
-    {
-        SetLastError(RtlNtStatusToDosError(Status));
-        return FALSE;
-    }
-
-    return TRUE;
-}
-
-
 /*
  * @implemented
  */
@@ -207,47 +184,6 @@ IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor)
     return (BOOL)Result;
 }
 
-
-/*
- * @implemented
- */
-BOOL
-WINAPI
-MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
-               PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
-               LPDWORD lpdwAbsoluteSecurityDescriptorSize,
-               PACL pDacl,
-               LPDWORD lpdwDaclSize,
-               PACL pSacl,
-               LPDWORD lpdwSaclSize,
-               PSID pOwner,
-               LPDWORD lpdwOwnerSize,
-               PSID pPrimaryGroup,
-               LPDWORD lpdwPrimaryGroupSize)
-{
-    NTSTATUS Status;
-
-    Status = RtlSelfRelativeToAbsoluteSD(pSelfRelativeSecurityDescriptor,
-                                         pAbsoluteSecurityDescriptor,
-                                         lpdwAbsoluteSecurityDescriptorSize,
-                                         pDacl,
-                                         lpdwDaclSize,
-                                         pSacl,
-                                         lpdwSaclSize,
-                                         pOwner,
-                                         lpdwOwnerSize,
-                                         pPrimaryGroup,
-                                         lpdwPrimaryGroupSize);
-    if (!NT_SUCCESS(Status))
-    {
-        SetLastError(RtlNtStatusToDosError(Status));
-        return FALSE;
-    }
-
-    return TRUE;
-}
-
-
 /*
  * @implemented
  */
index ad8a0c0..a8f16d1 100644 (file)
@@ -854,6 +854,66 @@ GetLengthSid(PSID pSid)
     return (DWORD)RtlLengthSid(pSid);
 }
 
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor,
+                             DWORD dwRevision)
+{
+    NTSTATUS Status;
+
+    Status = RtlCreateSecurityDescriptor(pSecurityDescriptor,
+                                         dwRevision);
+    if (!NT_SUCCESS(Status))
+    {
+        SetLastError(RtlNtStatusToDosError(Status));
+        return FALSE;
+    }
+
+    return TRUE;
+}
+
+/*
+ * @implemented
+ */
+BOOL
+WINAPI
+MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
+               PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,
+               LPDWORD lpdwAbsoluteSecurityDescriptorSize,
+               PACL pDacl,
+               LPDWORD lpdwDaclSize,
+               PACL pSacl,
+               LPDWORD lpdwSaclSize,
+               PSID pOwner,
+               LPDWORD lpdwOwnerSize,
+               PSID pPrimaryGroup,
+               LPDWORD lpdwPrimaryGroupSize)
+{
+    NTSTATUS Status;
+
+    Status = RtlSelfRelativeToAbsoluteSD(pSelfRelativeSecurityDescriptor,
+                                         pAbsoluteSecurityDescriptor,
+                                         lpdwAbsoluteSecurityDescriptorSize,
+                                         pDacl,
+                                         lpdwDaclSize,
+                                         pSacl,
+                                         lpdwSaclSize,
+                                         pOwner,
+                                         lpdwOwnerSize,
+                                         pPrimaryGroup,
+                                         lpdwPrimaryGroupSize);
+    if (!NT_SUCCESS(Status))
+    {
+        SetLastError(RtlNtStatusToDosError(Status));
+        return FALSE;
+    }
+
+    return TRUE;
+}
+
 /******************************************************************************
  * GetKernelObjectSecurity [ADVAPI32.@]
  */