fixed desired access rights in GetFileSecurityW
authorThomas Bluemel <thomas@reactsoft.com>
Mon, 9 Jan 2006 00:30:33 +0000 (00:30 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Mon, 9 Jan 2006 00:30:33 +0000 (00:30 +0000)
svn path=/trunk/; revision=20744

reactos/lib/advapi32/sec/misc.c

index 0e05ff5..12b50e4 100644 (file)
@@ -213,7 +213,7 @@ GetFileSecurityW(LPCWSTR lpFileName,
   if (RequestedInformation &
       (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
     {
   if (RequestedInformation &
       (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION))
     {
-      AccessMask |= STANDARD_RIGHTS_READ;
+      AccessMask |= READ_CONTROL;
     }
 
   if (RequestedInformation & SACL_SECURITY_INFORMATION)
     }
 
   if (RequestedInformation & SACL_SECURITY_INFORMATION)