Dmitry Timoshkov : msi: Make some data const and static.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 29 07:24:10 CST 2006
Module: wine
Branch: master
Commit: 1cdf5cddac06e9124d317eca7f798de1dfae2955
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1cdf5cddac06e9124d317eca7f798de1dfae2955
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Wed Nov 29 18:03:14 2006 +0800
msi: Make some data const and static.
---
dlls/msi/action.c | 4 ++--
dlls/msi/dialog.c | 2 +-
dlls/msi/font.c | 2 +-
dlls/msi/update.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index c61a70b..9303bcb 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -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( MS
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 },
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index b050497..e222dcb 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -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},
diff --git a/dlls/msi/font.c b/dlls/msi/font.c
index 32dbbbe..2b08a0f 100644
--- a/dlls/msi/font.c
+++ b/dlls/msi/font.c
@@ -137,7 +137,7 @@ static LPWSTR load_ttfname_from(LPCWSTR
{
int nPos;
LPSTR buf;
- static LPCSTR tt = " (TrueType)";
+ static const char tt[] = " (TrueType)";
ttRecord.uStringLength = SWAPWORD(ttRecord.uStringLength);
ttRecord.uStringOffset = SWAPWORD(ttRecord.uStringOffset);
diff --git a/dlls/msi/update.c b/dlls/msi/update.c
index 502af14..a2bcbd0 100644
--- a/dlls/msi/update.c
+++ b/dlls/msi/update.c
@@ -171,7 +171,7 @@ static UINT UPDATE_find_matching_rows( s
}
-static MSIVIEWOPS update_ops =
+static const MSIVIEWOPS update_ops =
{
UPDATE_fetch_int,
NULL,
More information about the wine-cvs
mailing list