shlwapi/tests: Constify some character strings.

This commit is contained in:
Frédéric Delanoy 2013-12-28 14:14:58 +01:00 committed by Alexandre Julliard
parent bdce3b9994
commit 36e8004291
2 changed files with 3 additions and 3 deletions

View File

@ -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 *pSHRegGetValueA)(HKEY,LPCSTR,LPCSTR,SRRF,LPDWORD,LPVOID,LPDWORD);
static LSTATUS (WINAPI *pSHRegCreateUSKeyW)(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD); static LSTATUS (WINAPI *pSHRegCreateUSKeyW)(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
static char sTestpath1[] = "%LONGSYSTEMVAR%\\subdir1"; static const char sTestpath1[] = "%LONGSYSTEMVAR%\\subdir1";
static char sTestpath2[] = "%FOO%\\subdir1"; static const char sTestpath2[] = "%FOO%\\subdir1";
static const char * sEnvvar1 = "bar"; static const char * sEnvvar1 = "bar";
static const char * sEnvvar2 = "ImARatherLongButIndeedNeededString"; static const char * sEnvvar2 = "ImARatherLongButIndeedNeededString";

View File

@ -433,7 +433,7 @@ static void test_StrCpyW(void)
static void test_StrChrNW(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; LPWSTR p;
if (!pStrChrNW) if (!pStrChrNW)