mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +00:00
- SeSet/QuerySecurityAccessMask() should initialize DesiredAccess to 0 (inspired by 30154).
svn path=/trunk/; revision=30170
This commit is contained in:
parent
a80a5aed57
commit
fffed3ea73
|
@ -1362,6 +1362,8 @@ VOID STDCALL
|
||||||
SeQuerySecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
SeQuerySecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
||||||
OUT PACCESS_MASK DesiredAccess)
|
OUT PACCESS_MASK DesiredAccess)
|
||||||
{
|
{
|
||||||
|
*DesiredAccess = 0;
|
||||||
|
|
||||||
if (SecurityInformation & (OWNER_SECURITY_INFORMATION |
|
if (SecurityInformation & (OWNER_SECURITY_INFORMATION |
|
||||||
GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
|
GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
|
||||||
{
|
{
|
||||||
|
@ -1377,6 +1379,8 @@ VOID STDCALL
|
||||||
SeSetSecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
SeSetSecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
|
||||||
OUT PACCESS_MASK DesiredAccess)
|
OUT PACCESS_MASK DesiredAccess)
|
||||||
{
|
{
|
||||||
|
*DesiredAccess = 0;
|
||||||
|
|
||||||
if (SecurityInformation & (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION))
|
if (SecurityInformation & (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION))
|
||||||
{
|
{
|
||||||
*DesiredAccess |= WRITE_OWNER;
|
*DesiredAccess |= WRITE_OWNER;
|
||||||
|
|
Loading…
Reference in a new issue