[RTL] Fix RtlNewSecurityGrantedAccess improperly zeroing output buffer

This commit is contained in:
Hervé Poussineau 2018-12-31 11:11:43 +01:00 committed by Pierre Schweitzer
parent aa55bb1bd3
commit c4d25d27f6
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -673,7 +673,7 @@ RtlNewSecurityGrantedAccess(IN ACCESS_MASK DesiredAccess,
}
/* Check if the SACL right was granted... */
RtlZeroMemory(&Privileges, Size);
RtlZeroMemory(Privileges, Size);
if (Granted)
{
/* Yes, return it in the structure */