wininet: Avoid shadowing a parameter.

This commit is contained in:
Austin English 2011-03-09 01:08:52 -08:00 committed by Alexandre Julliard
parent b9cc7987cb
commit 249f4562d9
1 changed files with 9 additions and 9 deletions

View File

@ -2334,27 +2334,27 @@ DWORD INET_QueryOption(object_header_t *hdr, DWORD option, void *buffer, DWORD *
} }
for (i = 0; i < con->dwOptionCount; i++) { for (i = 0; i < con->dwOptionCount; i++) {
INTERNET_PER_CONN_OPTIONW *option = con->pOptions + i; INTERNET_PER_CONN_OPTIONW *optionW = con->pOptions + i;
INTERNET_PER_CONN_OPTIONA *optionA = conA->pOptions + i; INTERNET_PER_CONN_OPTIONA *optionA = conA->pOptions + i;
switch (option->dwOption) { switch (optionW->dwOption) {
case INTERNET_PER_CONN_FLAGS: case INTERNET_PER_CONN_FLAGS:
if(pi.dwProxyEnabled) if(pi.dwProxyEnabled)
option->Value.dwValue = PROXY_TYPE_PROXY; optionW->Value.dwValue = PROXY_TYPE_PROXY;
else else
option->Value.dwValue = PROXY_TYPE_DIRECT; optionW->Value.dwValue = PROXY_TYPE_DIRECT;
break; break;
case INTERNET_PER_CONN_PROXY_SERVER: case INTERNET_PER_CONN_PROXY_SERVER:
if (unicode) if (unicode)
option->Value.pszValue = heap_strdupW(pi.lpszProxyServer); optionW->Value.pszValue = heap_strdupW(pi.lpszProxyServer);
else else
optionA->Value.pszValue = heap_strdupWtoA(pi.lpszProxyServer); optionA->Value.pszValue = heap_strdupWtoA(pi.lpszProxyServer);
break; break;
case INTERNET_PER_CONN_PROXY_BYPASS: case INTERNET_PER_CONN_PROXY_BYPASS:
if (unicode) if (unicode)
option->Value.pszValue = heap_strdupW(pi.lpszProxyBypass); optionW->Value.pszValue = heap_strdupW(pi.lpszProxyBypass);
else else
optionA->Value.pszValue = heap_strdupWtoA(pi.lpszProxyBypass); optionA->Value.pszValue = heap_strdupWtoA(pi.lpszProxyBypass);
break; break;
@ -2365,12 +2365,12 @@ DWORD INET_QueryOption(object_header_t *hdr, DWORD option, void *buffer, DWORD *
case INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS: case INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS:
case INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME: case INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME:
case INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL: case INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL:
FIXME("Unhandled dwOption %d\n", option->dwOption); FIXME("Unhandled dwOption %d\n", optionW->dwOption);
memset(&option->Value, 0, sizeof(option->Value)); memset(&optionW->Value, 0, sizeof(optionW->Value));
break; break;
default: default:
FIXME("Unknown dwOption %d\n", option->dwOption); FIXME("Unknown dwOption %d\n", optionW->dwOption);
res = ERROR_INVALID_PARAMETER; res = ERROR_INVALID_PARAMETER;
break; break;
} }