From 36e80042915e98fef1f4fae063a2cfbe968be5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Sat, 28 Dec 2013 14:14:58 +0100 Subject: [PATCH] shlwapi/tests: Constify some character strings. --- dlls/shlwapi/tests/shreg.c | 4 ++-- dlls/shlwapi/tests/string.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shlwapi/tests/shreg.c b/dlls/shlwapi/tests/shreg.c index 2b6cb1c5d15..dfc8c3ebd9c 100644 --- a/dlls/shlwapi/tests/shreg.c +++ b/dlls/shlwapi/tests/shreg.c @@ -39,8 +39,8 @@ static DWORD (WINAPI *pSHRegGetPathA)(HKEY,LPCSTR,LPCSTR,LPSTR,DWORD); static LSTATUS (WINAPI *pSHRegGetValueA)(HKEY,LPCSTR,LPCSTR,SRRF,LPDWORD,LPVOID,LPDWORD); static LSTATUS (WINAPI *pSHRegCreateUSKeyW)(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD); -static char sTestpath1[] = "%LONGSYSTEMVAR%\\subdir1"; -static char sTestpath2[] = "%FOO%\\subdir1"; +static const char sTestpath1[] = "%LONGSYSTEMVAR%\\subdir1"; +static const char sTestpath2[] = "%FOO%\\subdir1"; static const char * sEnvvar1 = "bar"; static const char * sEnvvar2 = "ImARatherLongButIndeedNeededString"; diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c index 12f8bfc3f63..e5f02837abe 100644 --- a/dlls/shlwapi/tests/string.c +++ b/dlls/shlwapi/tests/string.c @@ -433,7 +433,7 @@ static void test_StrCpyW(void) static void test_StrChrNW(void) { - static WCHAR string[] = {'T','e','s','t','i','n','g',' ','S','t','r','i','n','g',0}; + static const WCHAR string[] = {'T','e','s','t','i','n','g',' ','S','t','r','i','n','g',0}; LPWSTR p; if (!pStrChrNW)