mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
return the required buffer size in RtlMakeSelfRelativeSD if the supplied buffer is too small
svn path=/trunk/; revision=18945
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user