msi: Make some data const and static.

This commit is contained in:
Dmitry Timoshkov 2006-11-29 18:03:14 +08:00 committed by Alexandre Julliard
parent 0bde8135fc
commit 1cdf5cddac
4 changed files with 5 additions and 5 deletions

View File

@ -240,7 +240,7 @@ struct _actions {
STANDARDACTIONHANDLER handler;
};
static struct _actions StandardActions[];
static const struct _actions StandardActions[];
/********************************************************
@ -4316,7 +4316,7 @@ static UINT ACTION_UnregisterComPlus( MSIPACKAGE *package )
return msi_unimplemented_action_stub( package, "UnregisterComPlus", table );
}
static struct _actions StandardActions[] = {
static const struct _actions StandardActions[] = {
{ szAllocateRegistrySpace, ACTION_AllocateRegistrySpace },
{ szAppSearch, ACTION_AppSearch },
{ szBindImage, ACTION_BindImage },

View File

@ -2399,7 +2399,7 @@ static BOOL str_is_number( LPCWSTR str )
return TRUE;
}
WCHAR column_keys[][80] =
static const WCHAR column_keys[][80] =
{
{'V','o','l','u','m','e','C','o','s','t','V','o','l','u','m','e',0},
{'V','o','l','u','m','e','C','o','s','t','S','i','z','e',0},

View File

@ -137,7 +137,7 @@ static LPWSTR load_ttfname_from(LPCWSTR filename)
{
int nPos;
LPSTR buf;
static LPCSTR tt = " (TrueType)";
static const char tt[] = " (TrueType)";
ttRecord.uStringLength = SWAPWORD(ttRecord.uStringLength);
ttRecord.uStringOffset = SWAPWORD(ttRecord.uStringOffset);

View File

@ -171,7 +171,7 @@ static UINT UPDATE_find_matching_rows( struct tagMSIVIEW *view, UINT col, UINT v
}
static MSIVIEWOPS update_ops =
static const MSIVIEWOPS update_ops =
{
UPDATE_fetch_int,
NULL,