winhttp/tests: Accept another error from WinHttpGetProxyForUrl.

This commit is contained in:
Hans Leidekker 2013-01-02 13:05:57 +01:00 committed by Alexandre Julliard
parent 8e9f0af2a9
commit 8d0551b98d

View file

@ -2697,7 +2697,8 @@ static void test_WinHttpGetProxyForUrl(void)
SetLastError(0xdeadbeef);
ret = WinHttpGetProxyForUrl( session, urlW, &options, &info );
error = GetLastError();
if (!ret) ok( error == ERROR_WINHTTP_AUTODETECTION_FAILED, "got %u\n", error );
if (!ret) ok( error == ERROR_WINHTTP_AUTODETECTION_FAILED ||
error == ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT, "got %u\n", error );
else
{
trace("Proxy.AccessType=%u\n", info.dwAccessType);