return the required buffer size in RtlMakeSelfRelativeSD if the supplied buffer is too small

svn path=/trunk/; revision=18945
This commit is contained in:
Thomas Bluemel 2005-11-02 00:40:35 +00:00
parent 524dd664c3
commit 8006508b1a

View file

@ -455,6 +455,7 @@ RtlMakeSelfRelativeSD(PISECURITY_DESCRIPTOR AbsSD,
TotalLength = sizeof(SECURITY_DESCRIPTOR_RELATIVE) + OwnerLength + GroupLength + SaclLength + DaclLength;
if (*BufferLength < TotalLength)
{
*BufferLength = TotalLength;
return STATUS_BUFFER_TOO_SMALL;
}