mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:20:43 +00:00
winhttp: Check for NULL lpszAutoConfigUrl in WinHttpGetProxyForUrl().
Fixes a regression introduced by
cbfe940a1e
.
This commit is contained in:
parent
1efcbeacf1
commit
2b0cd25b5f
|
@ -2094,7 +2094,8 @@ BOOL WINAPI WinHttpGetProxyForUrl( HINTERNET hsession, LPCWSTR url, WINHTTP_AUTO
|
|||
!(options->dwFlags & (WINHTTP_AUTOPROXY_AUTO_DETECT|WINHTTP_AUTOPROXY_CONFIG_URL)) ||
|
||||
((options->dwFlags & WINHTTP_AUTOPROXY_AUTO_DETECT) && !options->dwAutoDetectFlags) ||
|
||||
((options->dwFlags & WINHTTP_AUTOPROXY_AUTO_DETECT) &&
|
||||
(options->dwFlags & WINHTTP_AUTOPROXY_CONFIG_URL)))
|
||||
(options->dwFlags & WINHTTP_AUTOPROXY_CONFIG_URL)) ||
|
||||
(options->dwFlags & WINHTTP_AUTOPROXY_CONFIG_URL && !options->lpszAutoConfigUrl))
|
||||
{
|
||||
release_object( &session->hdr );
|
||||
SetLastError( ERROR_INVALID_PARAMETER );
|
||||
|
|
Loading…
Reference in a new issue