[RTL] Fix RtlNewSecurityGrantedAccess improperly zeroing output buffer
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 31 Dec 2018 10:11:43 +0000 (11:11 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 31 Dec 2018 10:19:36 +0000 (11:19 +0100)
sdk/lib/rtl/security.c

index b6127a0..c2f5dee 100644 (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 */