msi: Make some data const and static

Dmitry Timoshkov dmitry at codeweavers.com
Wed Nov 29 04:03:14 CST 2006


Hello,

Changelog:
    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 668b49e..171772c 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[];
 
 
 /********************************************************
@@ -4318,7 +4318,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,
-- 
1.4.2






More information about the wine-patches mailing list