From aef49b6d574fb2609349b579bb72010a98693baf Mon Sep 17 00:00:00 2001 From: short <> Date: Sat, 29 Mar 2003 17:05:04 +0000 Subject: [PATCH] RtlLengthSecurityDescriptor() is now "passed" instead of ReactOS native - its ReactOS implementation is buggy --- ntoskrnl/se/sd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ntoskrnl/se/sd.c b/ntoskrnl/se/sd.c index 7c9ca64..a95833c 100644 --- a/ntoskrnl/se/sd.c +++ b/ntoskrnl/se/sd.c @@ -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, -- 1.8.3.1