RtlLengthSecurityDescriptor() is now "passed" instead of ReactOS native
[reactos.git] / ntoskrnl / se / sd.c
index 7c9ca64..a95833c 100644 (file)
@@ -44,7 +44,11 @@ RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor,
   return(STATUS_SUCCESS);
 }
 
+#ifndef LIBCAPTIVE
 
+/* FIXME: This function is somehow buggy, at least it uses '0xfc' mask
+ * instead of '0xFFFFFFFC' mask as sometimes there are PAGE_SIZE sized structures.
+ */
 ULONG STDCALL
 RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor)
 {
@@ -100,7 +104,6 @@ RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor)
    return(Length);
 }
 
-#ifndef LIBCAPTIVE
 
 NTSTATUS STDCALL
 RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor,