[ros-diffs] [weiden] 18945: return the required buffer size in RtlMakeSelfRelativeSD if the supplied buffer is too small

weiden at svn.reactos.com weiden at svn.reactos.com
Wed Nov 2 01:40:48 CET 2005


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;
    }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051102/5439d842/attachment.html


More information about the Ros-diffs mailing list