msi: Constify some variables.

This commit is contained in:
Andrew Talbot 2007-02-17 19:24:20 +00:00 committed by Alexandre Julliard
parent 4bd4e5d39f
commit 5346ba392d
2 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ static UINT ACTION_FileVersionMatches(MSISIGNATURE *sig, LPCWSTR filePath,
if (buf) if (buf)
{ {
static WCHAR rootW[] = { '\\',0 }; static const WCHAR rootW[] = { '\\',0 };
UINT versionLen; UINT versionLen;
LPVOID subBlock = NULL; LPVOID subBlock = NULL;

View File

@ -1231,7 +1231,7 @@ end:
UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf, UINT WINAPI MsiGetFileVersionW(LPCWSTR szFilePath, LPWSTR lpVersionBuf,
DWORD* pcchVersionBuf, LPWSTR lpLangBuf, DWORD* pcchLangBuf) DWORD* pcchVersionBuf, LPWSTR lpLangBuf, DWORD* pcchLangBuf)
{ {
static WCHAR szVersionResource[] = {'\\',0}; static const WCHAR szVersionResource[] = {'\\',0};
static const WCHAR szVersionFormat[] = { static const WCHAR szVersionFormat[] = {
'%','d','.','%','d','.','%','d','.','%','d',0}; '%','d','.','%','d','.','%','d','.','%','d',0};
static const WCHAR szLangFormat[] = {'%','d',0}; static const WCHAR szLangFormat[] = {'%','d',0};