Andrew Talbot : msi: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 19 07:02:04 CST 2007


Module: wine
Branch: master
Commit: 5346ba392d15bff10aeb95a90dd41b86792a9c66
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5346ba392d15bff10aeb95a90dd41b86792a9c66

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sat Feb 17 19:24:20 2007 +0000

msi: Constify some variables.

---

 dlls/msi/appsearch.c |    2 +-
 dlls/msi/msi.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index 4b65f65..4c5847e 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -493,7 +493,7 @@ static UINT ACTION_FileVersionMatches(MSISIGNATURE *sig, LPCWSTR filePath,
 
             if (buf)
             {
-                static WCHAR rootW[] = { '\\',0 };
+                static const WCHAR rootW[] = { '\\',0 };
                 UINT versionLen;
                 LPVOID subBlock = NULL;
 
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 34cbe52..2cb4848 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -1231,7 +1231,7 @@ end:
 UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
                 DWORD* pcchVersionBuf, LPWSTR lpLangBuf, DWORD* pcchLangBuf)
 {
-    static WCHAR szVersionResource[] = {'\\',0};
+    static const WCHAR szVersionResource[] = {'\\',0};
     static const WCHAR szVersionFormat[] = {
         '%','d','.','%','d','.','%','d','.','%','d',0};
     static const WCHAR szLangFormat[] = {'%','d',0};




More information about the wine-cvs mailing list