mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +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:
parent
524dd664c3
commit
8006508b1a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue