wininet: Remove unneeded address-of operators from array names.
This commit is contained in:
parent
9b5d26ed8b
commit
6a26bccb8e
|
@ -2715,7 +2715,7 @@ BOOL WINAPI InternetCheckConnectionW( LPCWSTR lpszUrl, DWORD dwFlags, DWORD dwRe
|
||||||
URL_COMPONENTSW components;
|
URL_COMPONENTSW components;
|
||||||
|
|
||||||
ZeroMemory(&components,sizeof(URL_COMPONENTSW));
|
ZeroMemory(&components,sizeof(URL_COMPONENTSW));
|
||||||
components.lpszHostName = (LPWSTR)&hostW;
|
components.lpszHostName = (LPWSTR)hostW;
|
||||||
components.dwHostNameLength = 1024;
|
components.dwHostNameLength = 1024;
|
||||||
|
|
||||||
if (!InternetCrackUrlW(lpszUrl,0,0,&components))
|
if (!InternetCrackUrlW(lpszUrl,0,0,&components))
|
||||||
|
@ -3427,7 +3427,7 @@ static LPCWSTR INTERNET_GetSchemeString(INTERNET_SCHEME scheme)
|
||||||
index = scheme - INTERNET_SCHEME_FIRST;
|
index = scheme - INTERNET_SCHEME_FIRST;
|
||||||
if (index >= sizeof(url_schemes)/sizeof(url_schemes[0]))
|
if (index >= sizeof(url_schemes)/sizeof(url_schemes[0]))
|
||||||
return NULL;
|
return NULL;
|
||||||
return (LPCWSTR)&url_schemes[index];
|
return (LPCWSTR)url_schemes[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we can calculate using ansi strings because we're just
|
/* we can calculate using ansi strings because we're just
|
||||||
|
|
Loading…
Reference in New Issue