mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
winhttp: Verify parameter types in IWinHttpRequest::SetProxy.
This commit is contained in:
parent
40bf74107f
commit
cfe4c56624
@ -2414,8 +2414,8 @@ static HRESULT WINAPI winhttp_request_SetProxy(
|
||||
|
||||
case HTTPREQUEST_PROXYSETTING_PROXY:
|
||||
request->proxy.dwAccessType = WINHTTP_ACCESS_TYPE_NAMED_PROXY;
|
||||
request->proxy.lpszProxy = strdupW( V_BSTR( &proxy_server ) );
|
||||
request->proxy.lpszProxyBypass = strdupW( V_BSTR( &bypass_list ) );
|
||||
if (V_VT( &proxy_server ) == VT_BSTR) request->proxy.lpszProxy = strdupW( V_BSTR( &proxy_server ) );
|
||||
if (V_VT( &bypass_list ) == VT_BSTR) request->proxy.lpszProxyBypass = strdupW( V_BSTR( &bypass_list ) );
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user