version/tests: Constify some character strings
Frédéric Delanoy
frederic.delanoy at gmail.com
Mon Dec 30 20:00:45 CST 2013
---
dlls/version/tests/info.c | 2 +-
dlls/version/tests/install.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/version/tests/info.c b/dlls/version/tests/info.c
index aa1982c..e66c9ee 100644
--- a/dlls/version/tests/info.c
+++ b/dlls/version/tests/info.c
@@ -204,7 +204,7 @@ static void test_info(void)
VS_FIXEDFILEINFO *pFixedVersionInfo;
UINT uiLength;
char VersionString[MAX_PATH];
- static CHAR backslash[] = "\\";
+ static const char backslash[] = "\\";
DWORDLONG dwlVersion;
hdl = 0x55555555;
diff --git a/dlls/version/tests/install.c b/dlls/version/tests/install.c
index 6faeaba..9b84dce 100644
--- a/dlls/version/tests/install.c
+++ b/dlls/version/tests/install.c
@@ -34,9 +34,9 @@ static void test_find_file(void)
char filename[MAX_PATH];
char outBuf[MAX_PATH];
char windir[MAX_PATH];
- static CHAR empty[] = "",
- regedit[] = "regedit",
- regedit_exe[] = "regedit.exe";
+ static const char empty[] = "",
+ regedit[] = "regedit",
+ regedit_exe[] = "regedit.exe";
memset(appdir, 0, MAX_PATH);
memset(windir, 0, MAX_PATH);
--
1.8.5.2
More information about the wine-patches
mailing list