mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- SeSet/QuerySecurityAccessMask() should initialize DesiredAccess to 0 (inspired by 30154).
svn path=/trunk/; revision=30170
This commit is contained in:
@@ -1362,6 +1362,8 @@ VOID STDCALL
|
||||
SeQuerySecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
||||
OUT PACCESS_MASK DesiredAccess)
|
||||
{
|
||||
*DesiredAccess = 0;
|
||||
|
||||
if (SecurityInformation & (OWNER_SECURITY_INFORMATION |
|
||||
GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
|
||||
{
|
||||
@@ -1377,6 +1379,8 @@ VOID STDCALL
|
||||
SeSetSecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
||||
OUT PACCESS_MASK DesiredAccess)
|
||||
{
|
||||
*DesiredAccess = 0;
|
||||
|
||||
if (SecurityInformation & (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION))
|
||||
{
|
||||
*DesiredAccess |= WRITE_OWNER;
|
||||
|
||||
Reference in New Issue
Block a user