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

Alexandre Julliard julliard at winehq.org
Wed Jul 22 09:34:45 CDT 2009


Module: wine
Branch: master
Commit: 47535030cc999075640562809bdda389798110cd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=47535030cc999075640562809bdda389798110cd

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Wed Jul 22 12:06:41 2009 +0200

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

---

 dlls/winhttp/tests/winhttp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 76e08e0..67ac504 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -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;




More information about the wine-cvs mailing list