winhttp/tests: Fix a test failure on some W2K/XP systems.

This commit is contained in:
Paul Vriens 2009-07-22 12:06:41 +02:00 committed by Alexandre Julliard
parent 43f36486e4
commit 47535030cc
1 changed files with 2 additions and 1 deletions

View File

@ -942,7 +942,8 @@ static void test_set_default_proxy_config(void)
info.lpszProxy = wideString;
SetLastError(0xdeadbeef);
ret = WinHttpSetDefaultProxyConfiguration(&info);
ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
ok((!ret && GetLastError() == ERROR_INVALID_PARAMETER) ||
broken(ret), /* Earlier winhttp versions on W2K/XP */
"expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
info.lpszProxy = normalString;