[ros-diffs] [greatlrd] 21876: bug 1468 : patch from w3seek, advapi32: support object ACEs in string functions

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Wed May 10 11:44:06 CEST 2006


Author: greatlrd
Date: Wed May 10 13:44:06 2006
New Revision: 21876

URL: http://svn.reactos.ru/svn/reactos?rev=21876&view=rev
Log:
bug 1468 : patch from w3seek, advapi32: support object ACEs in string functions

Modified:
    trunk/reactos/dll/win32/advapi32/sec/sid.c

Modified: trunk/reactos/dll/win32/advapi32/sec/sid.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sid.c?rev=21876&r1=21875&r2=21876&view=diff
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sid.c (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sid.c Wed May 10 13:44:06 2006
@@ -31,7 +31,7 @@
    DWORD value;
 } ACEFLAG, *LPACEFLAG;
 
-static SID const sidWorld = { SID_REVISION, 1, { SECURITY_WORLD_SID_AUTHORITY} , { SECURITY_WORLD_RID } };
+static const SID sidWorld = { SID_REVISION, 1, { SECURITY_WORLD_SID_AUTHORITY} , { SECURITY_WORLD_RID } };
 
 /*
  * ACE access rights
@@ -55,7 +55,7 @@
 static const WCHAR SDDL_AUDIT[]                 = {'A','U',0};
 static const WCHAR SDDL_ALARM[]                 = {'A','L',0};
 static const WCHAR SDDL_OBJECT_AUDIT[]          = {'O','U',0};
-static const WCHAR SDDL_OBJECT_ALARMp[]         = {'O','L',0};
+static const WCHAR SDDL_OBJECT_ALARM[]          = {'O','L',0};
 
 /*
  * ACE flags
@@ -104,18 +104,16 @@
 /******************************************************************************
  * ParseAceStringType
  */
-ACEFLAG AceType[] =
+static const ACEFLAG AceType[] =
 {
     { SDDL_ACCESS_ALLOWED, ACCESS_ALLOWED_ACE_TYPE },
     { SDDL_ALARM,          SYSTEM_ALARM_ACE_TYPE },
     { SDDL_AUDIT,          SYSTEM_AUDIT_ACE_TYPE },
     { SDDL_ACCESS_DENIED,  ACCESS_DENIED_ACE_TYPE },
-    /*
     { SDDL_OBJECT_ACCESS_ALLOWED, ACCESS_ALLOWED_OBJECT_ACE_TYPE },
     { SDDL_OBJECT_ACCESS_DENIED,  ACCESS_DENIED_OBJECT_ACE_TYPE },
     { SDDL_OBJECT_ALARM,          SYSTEM_ALARM_OBJECT_ACE_TYPE },
     { SDDL_OBJECT_AUDIT,          SYSTEM_AUDIT_OBJECT_ACE_TYPE },
-    */
     { NULL, 0 },
 };
 
@@ -123,7 +121,7 @@
 {
     UINT len = 0;
     LPCWSTR szAcl = *StringAcl;
-    LPACEFLAG lpaf = AceType;
+    const ACEFLAG *lpaf = AceType;
 
     while (lpaf->wstr &&
         (len = strlenW(lpaf->wstr)) &&
@@ -141,7 +139,7 @@
 /******************************************************************************
  * ParseAceStringFlags
  */
-ACEFLAG AceFlags[] =
+static const ACEFLAG AceFlags[] =
 {
     { SDDL_CONTAINER_INHERIT, CONTAINER_INHERIT_ACE },
     { SDDL_AUDIT_FAILURE,     FAILED_ACCESS_ACE_FLAG },
@@ -161,7 +159,7 @@
 
     while (*szAcl != ';')
     {
-        LPACEFLAG lpaf = AceFlags;
+        const ACEFLAG *lpaf = AceFlags;
 
         while (lpaf->wstr &&
                (len = strlenW(lpaf->wstr)) &&
@@ -183,7 +181,7 @@
 /******************************************************************************
  * ParseAceStringRights
  */
-ACEFLAG AceRights[] =
+static const ACEFLAG AceRights[] =
 {
     { SDDL_GENERIC_ALL,     GENERIC_ALL },
     { SDDL_GENERIC_READ,    GENERIC_READ },
@@ -221,7 +219,7 @@
     {
         while (*szAcl != ';')
         {
-            LPACEFLAG lpaf = AceRights;
+            const ACEFLAG *lpaf = AceRights;
 
             while (lpaf->wstr &&
                (len = strlenW(lpaf->wstr)) &&




More information about the Ros-diffs mailing list