Module: wine Branch: master Commit: 8d8a4c103a8a914c81bbee80c3fc3b9acdcdd684 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d8a4c103a8a914c81bbee80c3...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Thu Dec 19 22:25:12 2013 +0100
winefile: Constify some character strings.
---
programs/winefile/winefile.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index d2413d1..dee98c9 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -1757,11 +1757,11 @@ static void PropDlg_DisplayValue(HWND hlbox, HWND hedit)
static void CheckForFileInfo(struct PropertiesDialog* dlg, HWND hwnd, LPCWSTR strFilename) { - static WCHAR sBackSlash[] = {'\','\0'}; - static WCHAR sTranslation[] = {'\','V','a','r','F','i','l','e','I','n','f','o','\','T','r','a','n','s','l','a','t','i','o','n','\0'}; - static WCHAR sStringFileInfo[] = {'\','S','t','r','i','n','g','F','i','l','e','I','n','f','o','\', + static const WCHAR sBackSlash[] = {'\','\0'}; + static const WCHAR sTranslation[] = {'\','V','a','r','F','i','l','e','I','n','f','o','\','T','r','a','n','s','l','a','t','i','o','n','\0'}; + static const WCHAR sStringFileInfo[] = {'\','S','t','r','i','n','g','F','i','l','e','I','n','f','o','\', '%','0','4','x','%','0','4','x','\','%','s','\0'}; - static WCHAR sFmt[] = {'%','d','.','%','d','.','%','d','.','%','d','\0'}; + static const WCHAR sFmt[] = {'%','d','.','%','d','.','%','d','.','%','d','\0'}; DWORD dwVersionDataLen = GetFileVersionInfoSizeW(strFilename, NULL);
if (dwVersionDataLen) {