Author: arty
Date: Sat Sep 1 15:14:25 2007
New Revision: 28737
URL:
http://svn.reactos.org/svn/reactos?rev=28737&view=rev
Log:
Set needed sizes for return buffers when we return an insufficient buffer
error.
Modified:
trunk/reactos/lib/rtl/sd.c
Modified: trunk/reactos/lib/rtl/sd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/sd.c?rev=28737&…
==============================================================================
--- trunk/reactos/lib/rtl/sd.c (original)
+++ trunk/reactos/lib/rtl/sd.c Sat Sep 1 15:14:25 2007
@@ -732,6 +732,10 @@
DaclLength > *DaclSize ||
SaclLength > *SaclSize)
{
+ *OwnerSize = OwnerLength;
+ *PrimaryGroupSize = GroupLength;
+ *DaclSize = DaclLength;
+ *SaclSize = SaclLength;
return STATUS_BUFFER_TOO_SMALL;
}