wininet: Remove unneeded address-of operators from array names.

This commit is contained in:
Andrew Talbot 2008-07-12 20:37:31 +01:00 committed by Alexandre Julliard
parent 9b5d26ed8b
commit 6a26bccb8e
1 changed files with 2 additions and 2 deletions

View File

@ -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