advapi32: Make some variables static and/or const.

This commit is contained in:
Alexandre Julliard 2006-06-12 13:41:15 +02:00
parent b5878798fd
commit 7bbc1d68c5
3 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(crypt);
HWND crypt_hWindow = 0;
static HWND crypt_hWindow;
#define CRYPT_ReturnLastError(err) do {SetLastError(err); return FALSE;} while(0)

View File

@ -2567,7 +2567,7 @@ static DWORD ParseAclStringFlags(LPCWSTR* StringAcl)
/******************************************************************************
* ParseAceStringType
*/
ACEFLAG AceType[] =
static const ACEFLAG AceType[] =
{
{ SDDL_ACCESS_ALLOWED, ACCESS_ALLOWED_ACE_TYPE },
{ SDDL_ALARM, SYSTEM_ALARM_ACE_TYPE },
@ -2586,7 +2586,7 @@ static BYTE ParseAceStringType(LPCWSTR* StringAcl)
{
UINT len = 0;
LPCWSTR szAcl = *StringAcl;
LPACEFLAG lpaf = AceType;
const ACEFLAG *lpaf = AceType;
while (lpaf->wstr &&
(len = strlenW(lpaf->wstr)) &&
@ -2604,7 +2604,7 @@ static BYTE ParseAceStringType(LPCWSTR* StringAcl)
/******************************************************************************
* ParseAceStringFlags
*/
ACEFLAG AceFlags[] =
static const ACEFLAG AceFlags[] =
{
{ SDDL_CONTAINER_INHERIT, CONTAINER_INHERIT_ACE },
{ SDDL_AUDIT_FAILURE, FAILED_ACCESS_ACE_FLAG },
@ -2624,7 +2624,7 @@ static BYTE ParseAceStringFlags(LPCWSTR* StringAcl)
while (*szAcl != ';')
{
LPACEFLAG lpaf = AceFlags;
const ACEFLAG *lpaf = AceFlags;
while (lpaf->wstr &&
(len = strlenW(lpaf->wstr)) &&
@ -2646,7 +2646,7 @@ static BYTE ParseAceStringFlags(LPCWSTR* StringAcl)
/******************************************************************************
* ParseAceStringRights
*/
ACEFLAG AceRights[] =
static const ACEFLAG AceRights[] =
{
{ SDDL_GENERIC_ALL, GENERIC_ALL },
{ SDDL_GENERIC_READ, GENERIC_READ },
@ -2684,7 +2684,7 @@ static DWORD ParseAceStringRights(LPCWSTR* StringAcl)
{
while (*szAcl != ';')
{
LPACEFLAG lpaf = AceRights;
const ACEFLAG *lpaf = AceRights;
while (lpaf->wstr &&
(len = strlenW(lpaf->wstr)) &&

View File

@ -79,7 +79,7 @@ static CRITICAL_SECTION_DEBUG service_cs_debug =
};
static CRITICAL_SECTION service_cs = { &service_cs_debug, -1, 0, 0, 0, 0 };
service_data *service_list;
static service_data *service_list;
/******************************************************************************
* SC_HANDLEs