winhttp: Fix a test failure on Windows 8 and conform to the more recent behavior.

This commit is contained in:
Hans Leidekker 2013-10-14 15:57:59 +02:00 committed by Alexandre Julliard
parent 2b5888cc96
commit 8946346f51
2 changed files with 7 additions and 3 deletions

View File

@ -1365,7 +1365,11 @@ BOOL WINAPI WinHttpDetectAutoProxyConfigUrl( DWORD flags, LPWSTR *url )
FIXME("getaddrinfo not found at build time\n");
#endif
}
if (!ret) set_last_error( ERROR_WINHTTP_AUTODETECTION_FAILED );
if (!ret)
{
set_last_error( ERROR_WINHTTP_AUTODETECTION_FAILED );
*url = NULL;
}
return ret;
}

View File

@ -2759,7 +2759,7 @@ if (0) /* crashes on some win2k systems */
if (!ret)
{
ok( error == ERROR_WINHTTP_AUTODETECTION_FAILED, "got %u\n", error );
ok( url == (WCHAR *)0xdeadbeef, "got %p\n", url );
ok( !url || broken(url == (WCHAR *)0xdeadbeef), "got %p\n", url );
}
else
{
@ -2774,7 +2774,7 @@ if (0) /* crashes on some win2k systems */
if (!ret)
{
ok( error == ERROR_WINHTTP_AUTODETECTION_FAILED, "got %u\n", error );
ok( url == (WCHAR *)0xdeadbeef, "got %p\n", url );
ok( !url || broken(url == (WCHAR *)0xdeadbeef), "got %p\n", url );
}
else
{