return the required buffer size in RtlMakeSelfRelativeSD if the supplied buffer is too small
Modified: trunk/reactos/lib/rtl/sd.c

Modified: trunk/reactos/lib/rtl/sd.c
--- trunk/reactos/lib/rtl/sd.c	2005-11-01 23:54:39 UTC (rev 18944)
+++ trunk/reactos/lib/rtl/sd.c	2005-11-02 00:40:35 UTC (rev 18945)
@@ -455,6 +455,7 @@
    TotalLength = sizeof(SECURITY_DESCRIPTOR_RELATIVE) + OwnerLength + GroupLength + SaclLength + DaclLength;
    if (*BufferLength < TotalLength)
    {
+      *BufferLength = TotalLength;
       return STATUS_BUFFER_TOO_SMALL;
    }