fixed desired access rights in GetFileSecurityW
[reactos.git] / 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))
     {
-      AccessMask |= STANDARD_RIGHTS_READ;
+      AccessMask |= READ_CONTROL;
     }
 
   if (RequestedInformation & SACL_SECURITY_INFORMATION)