Author: fireball
Date: Mon Nov 5 15:58:03 2007
New Revision: 30170
URL:
http://svn.reactos.org/svn/reactos?rev=30170&view=rev
Log:
- SeSet/QuerySecurityAccessMask() should initialize DesiredAccess to 0 (inspired by
30154).
Modified:
trunk/reactos/ntoskrnl/se/semgr.c
Modified: trunk/reactos/ntoskrnl/se/semgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/semgr.c?rev=30…
==============================================================================
--- trunk/reactos/ntoskrnl/se/semgr.c (original)
+++ trunk/reactos/ntoskrnl/se/semgr.c Mon Nov 5 15:58:03 2007
@@ -1362,6 +1362,8 @@
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 @@
SeSetSecurityAccessMask(IN SECURITY_INFORMATION SecurityInformation,
OUT PACCESS_MASK DesiredAccess)
{
+ *DesiredAccess = 0;
+
if (SecurityInformation & (OWNER_SECURITY_INFORMATION |
GROUP_SECURITY_INFORMATION))
{
*DesiredAccess |= WRITE_OWNER;