wininet: Constify data.
This commit is contained in:
parent
122b80030f
commit
7053321926
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue