Commit 80a8c8d2 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winhttp: Initialize a return variable.

When getaddrinfo() failed in detect_autoproxyconfig_url_dns(), an undefined variable is passed to WinHttpDetectAutoProxyConfigUrl(), causing applications to receive a wrong url. This is a regression from 4ad4173e. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48349Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 59e52108
......@@ -1427,7 +1427,7 @@ static WCHAR *build_wpad_url( const char *hostname, const struct addrinfo *ai )
static WCHAR *detect_autoproxyconfig_url_dns(void)
{
char *fqdn, *domain, *p;
WCHAR *ret;
WCHAR *ret = NULL;
if (!(fqdn = get_computer_name( ComputerNamePhysicalDnsFullyQualified ))) return NULL;
if (!(domain = get_computer_name( ComputerNamePhysicalDnsDomain )))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment