msi: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Feb 17 13:24:20 CST 2007


Changelog:
    msi: Constify some variables.

diff -urN a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
--- a/dlls/msi/appsearch.c	2006-11-28 17:52:15.000000000 +0000
+++ b/dlls/msi/appsearch.c	2007-02-17 16:23:09.000000000 +0000
@@ -493,7 +493,7 @@
 
             if (buf)
             {
-                static WCHAR rootW[] = { '\\',0 };
+                static const WCHAR rootW[] = { '\\',0 };
                 UINT versionLen;
                 LPVOID subBlock = NULL;
 
diff -urN a/dlls/msi/msi.c b/dlls/msi/msi.c
--- a/dlls/msi/msi.c	2006-10-10 19:20:06.000000000 +0100
+++ b/dlls/msi/msi.c	2007-02-17 16:27:06.000000000 +0000
@@ -1231,7 +1231,7 @@
 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-patches mailing list