wininet: Constify data.

This commit is contained in:
Andrew Ziem 2006-05-24 00:22:38 -06:00 committed by Alexandre Julliard
parent 122b80030f
commit 7053321926
2 changed files with 3 additions and 3 deletions

View File

@ -2068,7 +2068,7 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
urlComponents.nPort != INTERNET_DEFAULT_HTTPS_PORT)
{
int len;
static WCHAR fmt[] = {'%','s',':','%','i',0};
static const WCHAR fmt[] = {'%','s',':','%','i',0};
len = lstrlenW(hostName);
len += 7; /* 5 for strlen("65535") + 1 for ":" + 1 for '\0' */
lpwhs->lpszHostName = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));

View File

@ -1897,7 +1897,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
LONG lBufferSize;
BOOL bFound = FALSE;
int count;
static WCHAR szWWW[] = {'w','w','w',0};
static const WCHAR szWWW[] = {'w','w','w',0};
TRACE("(%s, 0x%08lx, %s, %p, 0x%08lx)\n",
debugstr_w(lpszUrlName),
@ -1990,7 +1990,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
for (i = 0; i < 255; i++)
{
static WCHAR szFormat[] = {'[','%','u',']','%','s',0};
static const WCHAR szFormat[] = {'[','%','u',']','%','s',0};
HANDLE hFile;
wsprintfW(lpszFileNameNoPath + countnoextension, szFormat, i, szExtension);
TRACE("Trying: %s\n", debugstr_w(lpszFileName));