implement MakeAbsoluteSD2 by forwarding to RtlSelfRelativeToAbsoluteSD2
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 23 Oct 2005 18:23:57 +0000 (18:23 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 23 Oct 2005 18:23:57 +0000 (18:23 +0000)
svn path=/trunk/; revision=18718

reactos/include/ndk/rtlfuncs.h
reactos/lib/advapi32/advapi32.def
reactos/lib/advapi32/sec/sec.c
reactos/lib/ntdll/def/ntdll.def
reactos/lib/rtl/sd.c

index 8d1592f..3dca19a 100644 (file)
@@ -539,6 +539,14 @@ RtlSelfRelativeToAbsoluteSD(
     IN PULONG PrimaryGroupSize
 );
 
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlSelfRelativeToAbsoluteSD2(
+    IN OUT PSECURITY_DESCRIPTOR SelfRelativeSD,
+    OUT PULONG BufferSize
+);
+
 NTSYSAPI
 NTSTATUS
 NTAPI
index dd6fc80..e201590 100644 (file)
@@ -413,7 +413,7 @@ MD5Update@12
 ;MSChapSrvChangePassword
 ;MSChapSrvChangePassword2
 MakeAbsoluteSD@44
-;MakeAbsoluteSD2
+MakeAbsoluteSD2@8
 MakeSelfRelativeSD@12
 MapGenericMask@8=NTDLL.RtlMapGenericMask
 NotifyBootConfigStatus@4
index b77b123..f1928f1 100644 (file)
@@ -268,6 +268,28 @@ MakeAbsoluteSD (
 }
 
 
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+MakeAbsoluteSD2(IN OUT PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,
+                OUT LPDWORD lpdwBufferSize)
+{
+    NTSTATUS Status;
+
+    Status = RtlSelfRelativeToAbsoluteSD2(pSelfRelativeSecurityDescriptor,
+                                          lpdwBufferSize);
+       if (!NT_SUCCESS(Status))
+       {
+               SetLastError (RtlNtStatusToDosError (Status));
+               return FALSE;
+       }
+
+       return TRUE;
+}
+
+
 /*
  * @implemented
  */
index 4cf36dc..61a2bb7 100644 (file)
@@ -606,6 +606,7 @@ RtlRunDecodeUnicodeString@8
 RtlRunEncodeUnicodeString@8
 RtlSecondsSince1970ToTime@8
 RtlSecondsSince1980ToTime@8
+RtlSelfRelativeToAbsoluteSD2@8
 RtlSelfRelativeToAbsoluteSD@44
 RtlSetAllBits@4
 RtlSetAttributesSecurityDescriptor@12
index 0c0b263..3eaef88 100644 (file)
@@ -729,7 +729,7 @@ RtlSelfRelativeToAbsoluteSD(PISECURITY_DESCRIPTOR RelSD,
  * @unimplemented
  */
 NTSTATUS NTAPI
-RtlSelfRelativeToAbsoluteSD2(PISECURITY_DESCRIPTOR_RELATIVE SelfRelativeSecurityDescriptor,
+RtlSelfRelativeToAbsoluteSD2(PISECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor,
                              PULONG BufferSize)
 {
    UNIMPLEMENTED;