Commit 70533219 authored by Andrew Ziem's avatar Andrew Ziem Committed by Alexandre Julliard

wininet: Constify data.

parent 122b8003
......@@ -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));
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment